2

I have a simple video player I would like to add double click events in my button, but unfortunately, it's not working in my iPhone but works perfectly in android

Here is my html

   <div id="skip_right" class='btn10sec_next skip_button'>

                </div>

and here is my js

$(".btn10sec_back").on("dblclick", function(){

        $("#videoplayer")[0].currentTime -=10;

      });

What do I need to do to so solve the problem?

The Dead Man
  • 6,258
  • 28
  • 111
  • 193
  • Does this answer your question? [How to differentiate single click event and double click event?](https://stackoverflow.com/questions/5497073/how-to-differentiate-single-click-event-and-double-click-event) – aymericbeaumet May 01 '20 at 20:34
  • why is my qn duplicate? @aymericbeaumet two different questions, – The Dead Man May 01 '20 at 20:37
  • Within `dblclick` what happens on the iPhone when you add some kind of visual clue like a basic javascript `alert`? – imvain2 May 01 '20 at 21:01
  • @user9964622 Are you getting single click events? People seem to be coming with workaround on mobile: https://stackoverflow.com/questions/27560653/jquery-on-double-click-event-dblclick-for-mobile – aymericbeaumet May 01 '20 at 21:08

0 Answers0