-
Notifications
You must be signed in to change notification settings - Fork 392
Description
Description
Scrollbar interaction behaves incorrectly when clicking on the scrollbar track (background), not the thumb.
In the basic demo sample, when clicking and holding the left mouse button on the scrollbar track, the content scrolls only once and then stops.
In a correct implementation, holding the mouse button on the scrollbar track should continuously auto-scroll in steps toward the position of the cursor until it reaches it or the button is released.
Currently, to scroll further, the user must release and press the mouse button repeatedly.
Steps to reproduce
- Open the basic demo sample: https://github.com/mikke89/RmlUi/tree/master/Samples/basic/demo
- Run the demo
- Find any scrollable element with a vertical scrollbar
- Click on the scrollbar track (empty area, not the thumb)
- Hold the left mouse button
Expected behavior
- While holding the mouse button on the scrollbar track:
- The content should auto-scroll repeatedly in steps
- Scrolling should continue until:
- the scroll position reaches the cursor location, or
- the mouse button is released
Actual behavior
- Content scrolls only once
- Auto-scrolling stops immediately
- To continue scrolling, the user must:
- release the mouse button
- click again on the scrollbar track
Environment
- RmlUi version: master
- Sample: Samples/basic/demo
- OS: Windows 11 x64
- Input device: mouse
Additional notes
This feels like the scrollbar track click handler triggers a single scroll step, but does not start a repeated auto-scroll while the mouse button remains pressed.
Video showing incorrect operation: https://youtu.be/vF16bsbrx-s
Video showing correct operation: https://youtu.be/qzpHWCbkrlU