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

Drag not stopping #44

Closed
judahtanthony opened this issue Jan 23, 2011 · 7 comments
Closed

Drag not stopping #44

judahtanthony opened this issue Jan 23, 2011 · 7 comments

Comments

@judahtanthony
Copy link

This may just be me, but when I mouse down on the drag-handle, start dragging, then mouse up NOT over the drag-handle, the dragging action never stops.

I haven't looked at the code, but it is as if the drag start is on the drag handle's mouse down, and the drag stop is on the drag handle's mouse up. But instead the drag stop should be on the window's mouse up, so that you can mouse up anywhere and stop the drag animation.

Using jScrollPane - v2.0.0beta5 - 2010-10-18

@vitch
Copy link
Owner

vitch commented Jan 23, 2011

Are you seeing this on my examples or just on your demo page. The mouseup handler is actually on the html element and so should always be fired. However, someone else was having a similar problem recently. I'm not sure if it is to do with the layout of the specific pages or maybe a change in jQuery - what version of jQuery are you using?

@m1n0
Copy link

m1n0 commented Jan 25, 2011

I am experiencing the same problem, using ScrollPane on Drupal site (jQuery version 1.2.6). Is it because of the jQuery version?
Thanks

edit:
I solved it by using older deprecated version of jscrollpane

@vitch
Copy link
Owner

vitch commented Jan 25, 2011

jScrollPane 2 requires jQuery 1.4+

If you are stuck using jQuery 1.2.6 (which was released back on 2008-05-24) then you'll need to use jScrollPane 1. More info:
http://groups.google.com/group/jscrollpane/browse_thread/thread/694dbfa054bc27b2

@judahtanthony - what version of jQuery are you using?

@judahtanthony
Copy link
Author

Yes, indeed. I am on Drupal 6 which ships with jQuery 1.2.6. I will download and try out jScrollPane 1 tomorrow. For anyone else who is interested you can download jScrollPane 1.x at https://github.com/vitch/jScrollPane/tree/1.x

@ghost
Copy link

ghost commented Nov 15, 2011

Hi all, I'm using jQuery 1.4.2 and jScrollPane 2, but still experiencing the same problem sometimes.
There should be some bugs on drag stop function.

Thanks

@ghost
Copy link

ghost commented Aug 27, 2014

Quick-Solution: In initialiseVerticalScroll after: verticalDrag.hover(...) add something like:
verticalDrag.parent().parent().parent().parent('.jspScrollable').bind('mouseup.jsp mouseleave.jsp', cancelDrag); Same goes for: initialiseHorizontalScroll

@illuusio
Copy link
Collaborator

If this is still issue please reopen.

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

4 participants