JQuery mobile: Pinch / Zoom / Scale Gesture - console.log ("something");

I just can’t find anything in the documents, or anywhere else, how to detect a simple squeeze-zoom gesture on a touch device using jQuery Mobile? I would also consider using another library or something else. I just want to determine if the user is trying to scale the content on the website.

Therefore, I do not need to deal with a hard gesture on the site element, but on the site itself. I just want to listen to the pinch gesture on my site.

Any idea how to do this?

Thank you

+6
source share
1 answer

Provider support varies, and iOS is the only platform on which you can reliably use multi-touch Javascript events.

http://developer.apple.com/library/ios/#DOCUMENTATION/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW8

From Apple's own documentation.

+2
source

Source: https://habr.com/ru/post/911207/


All Articles