freqdec / fd-slider

An Unobtrusive Accessible Slider script that can also be used as an HTML5 Input Range polyfill solution
Other
264 stars 55 forks source link

Finalise also on stopDrag? #13

Closed 0x6a68 closed 12 years ago

0x6a68 commented 12 years ago

Shouldnt the stopDrag function also call finalise or am i doing it wrong? sidenote i am not using the tween.

freqdec commented 12 years ago

Hi designaholic,

The finalise callback only gets fired when the tween animation has ended, it's not plugged into the drag & drop code at all. I could get the code to fire a "dragStop" event if this would help?

0x6a68 commented 12 years ago

as long as i can use the cb func: finalise, to sync the active value via ajax, i am fine with it

freqdec commented 12 years ago

I've added dragstart and dragend callbacks on the drag handle. You can also (probably easier) just use the update callback to sync values to the server though. This is called each time the associated form element has it's value updated.