0 Replies Latest reply on Jun 15, 2014 4:53 PM by Departure

    Detecting Swipe Sensitivity

    Departure Level 1

      Hi All,

       

      Scenario:

      - I have a Panoramic image.

      - Users swipe left / right to reach both ends of the image

      - I want the image to slide relative to the "intensity of the user's swipe/touch"


      Question

      Can I get any parameter from user's swipe? like swipeDistance or SwipeXposition before and after?

      anything that helps me to know how far the user wants to slide the image.

       

      Possible Execution:

      If so, then I can use the parameter to calculate my own distance ratios like below (?)

       

      $(window).bind("swipeleft", function(){

          distance =  calculateRange(SwipeIntensity)

          sym.$("image").animate({"left" : "-=distance"}, 1000, "easeInCubic")

      });

       

       

      Thanks in Advance