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

Slider.js trying to update none active handle at handleIdx of 0 not possible #15

Open
ccote opened this issue Aug 18, 2010 · 0 comments

Comments

@ccote
Copy link

ccote commented Aug 18, 2010

hello,

My slider has 2 handles (handle1, handle2). While sliding handle2, I was trying to update the value of handle1 using the setValue(value, 0) was not possible. The main reason setValue method perform following check (handleIdx = handleIdx || this.activeHandleIdx || 0) to determine handleIdx. Since handle2 is active handle, telling setValue to update value handle1 at handleIdx=0 the check always return handleIdx=1.

To see the fix go to http://github.com/ccote/scriptaculous/blob/master/src/slider.js

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