jQuery的Android的双指缩放 [英] jQuery Android pinch zoom
本文介绍了jQuery的Android的双指缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否有检测到用户在做双指缩放的方式。我想要做的两件事情,当用户在放大:
I want to know if there is a way to detect user is doing pinch zoom. I want to do two things when user zooming in:
- 让格对齐屏幕左侧
- 设置DIV等于视口宽度 的宽度
我发现Android有 touchstart
, touchend
和 touchmove
,但他们不会被多点触控时触发。我想完成缩放之后,完成上述功能。
I found Android has touchstart
, touchend
and touchmove
, but they won't be triggered during multitouch. I want to complete above function right after finishing zooming.
他们是任何其他方法?
我没有做的Web应用程序。我只是增加了一些功能的移动版本。
I am not doing the web app. I am just adding some functions to the mobile version.
推荐答案
您可以使用iScroll的捏和缩放。它工作正常。 http://cubiq.org/iscroll-4
You can use iScroll's pinch and zoom. It works fine. http://cubiq.org/iscroll-4
这篇关于jQuery的Android的双指缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文