用于移动捏合/缩放操作的javascript事件 [英] javascript event for a mobile pinch/zoom action

查看:150
本文介绍了用于移动捏合/缩放操作的javascript事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些帮助。我正在尝试在移动网页上工作。我正在尝试做的是当用户进行放大/缩小操作时捕获。也就是说,当他们将两根手指放在屏幕上并将他们的手指分开或闭合在一起时。我查看了jquery mobile并没有看到它。

I need some help. I am trying to work on a mobile web page. What i'm trying to do is "capture" when the user does a zoom in/zoom out action. That is, when they put two fingers on screen and separate or close their fingers together. I looked at jquery mobile and didn't see it.

所以我可以将javascript函数附加到移动设备中的捏合/缩放事件吗?

So specifically can I attach a javascript function to a pinch/zoom event in a mobile device?

非常感谢任何帮助。

推荐答案

hammer.js http://eightmedia.github.com/hammer.js/ 是解决此类问题的最佳javascript库之一..

hammer.js http://eightmedia.github.com/hammer.js/ is one of the best javascript library for such problems..

这篇关于用于移动捏合/缩放操作的javascript事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆