juhojo / corejumper

Platformer game
MIT License
2 stars 0 forks source link

Releasing scrollbar handle is buggy #11

Closed ilpoo closed 7 years ago

ilpoo commented 7 years ago

When releasing the scrollbar handle while the mouse pointer is over the scrollbar track, the mouseUp event propagates to both the track and the handle and the event handler for the track takes over. Track clicking event handler should only fire when state.dragging is set to false.

juhojo commented 7 years ago

Preventing bubbling on clicking could not be fixed with this.dragging so used click element comparison instead.