Results 1 to 5 of 5

Thread: Actions: touchmove

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default Actions: touchmove

    Hi,
    I have realized five scenes with Sencha Animator. I have applied the "touchmove" event to pass to the next or previous scene.
    I have exported my project in html5 to see the pages in a iPad with a browser. The "touchmove" action functions properly, but if I am tapping the screen for 1 second or more, the page changes even if I have not set any other action in Sencha.
    How can I do in Sencha Animator to avoid the tapping?
    Thank you in advance.

  2. #2
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Vote Rating
    10
      0  

    Default

    Does that happen if you turn off the touch move action?

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default

    Thank you for your reply. It's just I would like to try. As soon as done, I will post it.

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default

    I tried: I turned off the touchmove action (there are no action on the button now), and the tap on screen does not activate.
    Any suggestion?
    thanks.

  5. #5
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Vote Rating
    10
      0  

    Default

    So by tapping the screen long enough (or perhaps by just a sight movement) the touchmove action gets called, and that is how the browser behaves.

    So to avoid having your long taps to interfere, you could record the time when the touchstart event occurs, and then avoid switching scene in the touchmove action if a certain amount of time has passed. Note that this requires you to write JS code yourself using the custom JS action.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •