KevinBatdorf / liquidslider

A Responsive jQuery Content Slider
161 stars 62 forks source link

Prevent double-click from advancing slider twice. #162

Open blueskysd opened 8 years ago

blueskysd commented 8 years ago

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?

KevinBatdorf commented 8 years ago

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

blueskysd commented 8 years ago

Thanks, Kevin. I will give that a shot.