Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrollhandle dragging stops when mouse leaves window #39

Open
MRVerv opened this issue Jun 16, 2014 · 1 comment
Open

Scrollhandle dragging stops when mouse leaves window #39

MRVerv opened this issue Jun 16, 2014 · 1 comment

Comments

@MRVerv
Copy link

MRVerv commented Jun 16, 2014

When you are dragging the scroll-handle and the mouse leaves the window. the dragging stops. This is unexpected, as normal scroll-bars do not exhibit this behavior.

It can be fixed in the enscroll.js code by attaching the 'mouse-move' and 'mouse-up' event-handlers to the window-element instead of the body-element (and commenting out the explicit 'on mouse-out end drag' event-handlers). So far I have not encountered any problems with this modification.

@MRVerv
Copy link
Author

MRVerv commented Jun 17, 2014

I found that the above modification disabled dragging on IE8, but making the modification conditional on "('onmousemove' in window)" solved that problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant