javascript - Web iPad app - how to differentiante between one- and two- finger scrolls -


Making a web application for iPad customers, but recognizing where the user is working - and two finger scrolls Does anyone know how to implement this? Any convenient jQuery plug or anything else? Thank you.

I'm going to think that 'scroll' means you have panning gestures.

In search of mobile safari, it appears that as long as the element is not scrolled, you can find any difference using high-level DOM-events (both one and two finger panning gestures Is not capable) oncoll event when the movement stops).

If, the element is scrollable, you will get a series of mousewill events instead.

If you have a little dirty hands on your hands, you should take a look at the column, by opting you to get more low-level multi-touch events (TouchStart, Touch Men, Touchand, Touch Canal) You can get it. The incident item given to the operators of these events is a 'touch' asset that allows you to see the status of all the "fingers", it will give you all the necessary information.

Do not forget to stop default behavior, otherwise you will still receive onscroll and / or muswell events.

Look at the demo for some inspiration in handling multi-touch events in javascript is also excellent that you should keep an eye out.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -