Jump to content

Disabling mobile browser gestures. Possible?


Ydt
 Share

Recommended Posts

I'm curious if there is any javascript or other possible way to disable gesture input picked up by the mobile browser. For example I'd like to use a "pinch" type gesture for a project I am working on, but while running in a mobile browser using this gesture causes the browser to zoom out and lose focus on the canvas?

 

Any suggestions? Google search yielded negligible results.

Link to comment
Share on other sites

Well, it depends. If you want to utilize touches, you just have to call preventDefault() and stopPropagation() inside your touch handler functions.

If not, just define the ontouchstart method anywhere in your initialization code.

 

Oh, I also stumbled across a notice I made for myself some time ago thats related to this question. Altough, it might be constrained to iOS - not sure.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...