Scrollbars and auto repeat


#1

This used to work, it broke somewhere in the last few builds. In a list box, if you hold down the mouse button on the scroll bar arrow, it doesn’t auto scroll, it only scrolls when you release the mouse button.

ScrollbarButton (const int direction_, ScrollBar& owner_) : Button (String::empty), direction (direction_), owner (owner_) { setRepeatSpeed (100, 50, 10); setWantsKeyboardFocus (false); }

In the scroll bar button constructor, the button repeat is set up correctly. But then in ScrollBar::setButtonVisibility() the initial delay is set to -1. I think the default values for the scroll bar should be to auto repeat.


#2

ah, yes. Sorry, will fix that.


#3