3 Replies Latest reply on Mar 20, 2016 1:20 PM by Nadia Khuzina

    Clicking twice on pause/play button

    Octopus67

      Hi

      I have made a pause and a play button to my slideshow.

       

      The pause button is just a boks with the click-action code:

       

      sym.$('btn').click(function(){

                sym.stop();

      });

       

       

       

      The pause button is a boks with the click-action code:

       

      sym.$('btnPlay').click(function(){

      var timelinePos = sym.getPosition();

                sym.play(timelinePos);

       

      });

       

      It works but in the beginning, I have to click twice before the function works.

      It is only the first time. After that everything works fine.

       

      Does anybody know what could be the issue ?