2 Replies Latest reply on Sep 9, 2013 2:21 AM by mirifarr

    controlling timeline with touch

    mirifarr Level 1

      hey all

       

      I have animation timeline controled by the mousewheel,

      here is the code i use -

       

      composition ready-

       

      $(window).bind('mousewheel', function(event) {

                  var diro = event.originalEvent.wheelDelta < 0 ? 'Up' : 'Down';

                  var velo = Math.abs(event.originalEvent.wheelDelta);

                  $(this).text(diro + ' at a velocity of ' + velo);

                  if(diro == 'Up')

                  sym.play();

                  else

                  sym.playReverse();

              });

       

       

      the problem is on touch screen....

      what should i do to make this work on touch screen as well on mouse use?

       

      many tnx