-
Notifications
You must be signed in to change notification settings - Fork 146
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
Indicate which handle was manipulated on change. #101
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request. Can you create tests for this new feature? I'll be glad to integrate it once tested. Thanks. |
Thanks for your modifications. Can you test the 3 possible values? After that, I'll merge your request. |
I'm having some difficulty with the async nature of these tests...that is, properly ending each test and moving on to the next one.I try to unbind the event after the first callback but it doesn't seem to be working.The test results 'fall thru' to the next one in line. ideas? I thought the callback should be like |
I suggest you to write your test the other way around.
If you change values before setting up the binding, you'll not be able to catch the event. |
Can I do something to help you with this pull request? Are you stuck on something? |
So the code I listed above was the callback I'm using for valuesChanging...so I am already doing what you are suggesting I believe...but the problem is I cannot seem to stop the event firing after the first time, and so the events 'fall down'. Take a look at my newest commit to see what I mean. The "Issue 12" test seems to catch the handle drag firing and thinks its part of its test. |
I suggest you to move all your code in the first method. In the second method, verify that your callback was called (because your test will be OK even if the event was not fired at all). It should do the job. |
Ok, I ran your test, and I know what's going wrong:
|
Hi, any updates on this ? It would indeed be quite useful for some advanced uses. |
Any updates?? I'd love to see it work |
For the moment, tests are failing. I don't have any other updates on the subject. |
Hi Guillaume; [image: Inline image 1] Thank again, On Thu, Jun 12, 2014 at 12:21 PM, Guillaume Gautreau <
|
I can't see the image, but I'm glad you managed to do it on your own. |
@ghusse let me see if I can jump back into this over the next few days and submit a revised pull. Sorry for the delay. |
Provides a 'lastHandle' parameter that is part of 'trigger' which will be left,middle or right.
Demo page updated.
Fixes #67