Skip to content

fix: require click to activate scroll-to-adjust on sliders#182

Open
nnhhoang wants to merge 1 commit intopascalorg:mainfrom
nnhhoang:fix/slider-scroll-ux
Open

fix: require click to activate scroll-to-adjust on sliders#182
nnhhoang wants to merge 1 commit intopascalorg:mainfrom
nnhhoang:fix/slider-scroll-ux

Conversation

@nnhhoang
Copy link

@nnhhoang nnhhoang commented Mar 26, 2026

Summary

  • Fixes unintentional slider value changes when scrolling through property panels (door, window, wall, etc.)
  • Sliders now require a click to focus before scroll wheel adjusts their value
  • Click outside or press Escape to unfocus; focused slider shows a subtle border highlight

Closes #161

Screenshots

Unfocused sliders (default state — scroll passes through normally)

slider-unfocused

Focused slider (after click — scroll adjusts value, highlighted border)

slider-focused

Steps to reproduce

Select door/window/wall → open property panel → scroll through sliders

Before (bug): hover over slider → scroll → value changes unintentionally

After (fix): hover over slider → scroll → panel scrolls normally → click slider → slider gets focus border → scroll → value changes → click outside / press Escape → slider unfocused → scroll passes through again

Test plan

  • Hover + scroll over slider without clicking → value does not change
  • Click slider → scroll → value changes
  • Click outside → scroll over same slider → value does not change
  • Press Escape → scroll → value does not change
  • Drag slider still works as before
  • Direct value input (click number) still works as before

Previously, hovering over any SliderControl would hijack the scroll
wheel, causing unintentional value changes when scrolling through
property panels (e.g. door, window). Now the slider must be clicked
to focus before scroll adjusts its value. Click outside or press
Escape to unfocus.

Closes pascalorg#161
@nnhhoang nnhhoang force-pushed the fix/slider-scroll-ux branch from 1f14498 to 3da25b9 Compare March 26, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User experience on adjusting building element - Door

1 participant