taitems / jQuery.Gantt

jQuery Gantt Chart
http://taitems.github.io/jQuery.Gantt/
MIT License
952 stars 304 forks source link

Scrollbar handle moves only when mouse on top of the scrollbar #173

Open jaukia opened 9 years ago

jaukia commented 9 years ago

Scrollbar accepts mousemove events only when the cursor is on top of the scrollbar. This makes scrolling difficult, since you need to make sure your cursor stays within the bounds of the scrollbar area. Typically, after you've clicked on a scrollbar thumb, you should be able to move mouse anywhere on the page to scroll the scrollbar.

usmonster commented 9 years ago

Hi @jaukia! Thanks for reporting this, though I'm not sure I completely understand the issue. Are you talking about scrolling with a mouse's scroll wheel, or do you expect the chart to scroll with the mouse pointer even when no mouse buttons are pressed?

jaukia commented 9 years ago

Sorry for my vague description! Below, steps to reproduce, I hope this clarifies the issues:

1) with a mouse, press button down on top of the slider handle 2) keep mouse button pressed and move the mouse right, the slider handle should move right as well 3) now, keep mouse button still pressed and move the mouse left but so that the cursor is not anymore on top of the slider area but on top of the gantt grid, for example

-> expected behaviour: slider handle moves even when cursor above/below slider area -> currently happens: slider stops moving when the cursor leaves slider area (since mousemove events are not sent to the slider anymore, only to document)

usmonster commented 9 years ago

Thanks for the report! Yep, this is indeed an issue. The fix will be in an upcoming release.