-
Notifications
You must be signed in to change notification settings - Fork 63
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
bind to touch AND non touch events #119
Comments
Tried just doing this instead, but it's buggy.
|
Hi, Juste to be sure, first, did you notice I have removed jQuery dependency, so you need to include it yourself..but I guess you did. Then I have made some tests with your code which looks good. I have tried both angular jqlite or jquery and it was fine. https://docs.angularjs.org/api/ng/function/angular.element make sure slider's dom structure is injected into DOM before calling your code ? or share with me more about code around, kindly, julien |
The issue with the code I have is that if you're dragging the slider and move your mouse outside of the jslider area, it's no longer bound. Here's a full working example: http://jsfiddle.net/g9e9n8xc/311/
If you hover back over the slider the color will change, but not until then. I noticed with your last commit you added binding events, so I thought maybe there was a more supported way of doing this. |
Which version do you use ? 2015-07-21 15:39 GMT+02:00 Dan G Nelson [email protected]:
|
2.3.8 |
I try to understand the case, if I move outside come back, move outside, come back... your binding event listener code is still executed here. |
If you start a drag on the left, move your mouse down, out of the container, then to the right, the action will not occur. |
do you reproduce it with this fiddle ? |
Yes. Click the dragger. Move your mouse down out of the div while holding down. Move the slider over, the color won't change. If you hover over the div afterwards, it will change. I need a way to bind to interactions with the slider. So on stop or start of the interaction I can trigger an action. |
Can you give me an example for how I might bind to an event in a controller? I'm lost trying to figure it out.
The text was updated successfully, but these errors were encountered: