liquidslider icon indicating copy to clipboard operation
liquidslider copied to clipboard

Prevent double-click from advancing slider twice.

Open blueskysd opened this issue 10 years ago • 2 comments

I'm using Liquid Slider to separate several parts of a form onto different slides. Therefor, I need the user to advance through the slides one at a time. It's been working great, but recently I discovered that in some browsers (Chrome and Safari on Mac, for sure) double-clicking the arrow causes the slider to advance two panels at a time.

I've tried everything I can think of to stop this from happening - including preventDefault and stopPropagation. How can I make sure double-clicking only advances one slide?

blueskysd avatar Feb 16 '16 02:02 blueskysd

I would disable the arrow navigation and use the API function to move the slider. You can view and example here.

KevinBatdorf avatar Feb 16 '16 02:02 KevinBatdorf

Thanks, Kevin. I will give that a shot.

blueskysd avatar Feb 16 '16 03:02 blueskysd