I am trying to add a ScrollBar . ScrollBar will ScrollBar over the displayed documents. However, I am having trouble getting an event when the scrollbar changes. I'm not sure what I need to listen to, and I'm not sure which event I should respond to. I tried the following and I have some events, but I do not think these are ideal events to handle.
listenTo(scrollBar) listenTo(scrollBar.keys) listenTo(scrollBar.mouse.moves) listenTo(scrollBar.mouse.wheel) listenTo(scrollBar.mouse.clicks)
For example, I only get MouseClicked , MousePressed and MouseReleased when I click inside the scrollbar - not when I click on the arrows to actually change the value.
I found this discussion about scrollbars not taking events properly, but it's two years. As far as I can tell, the author did not track the ticket for the file. Perhaps he found a workaround.
Any ideas?
source share