本文介绍了JQuery - 我可以查询MacBook Pro触控板吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我可以使用JQuery来查询触控板吗?
所以我可以做这样的事情:
$ b $ p伪的Javascript(JQuery)

  $(document).keyInput()。trackpadTwoFingersLeft(function(){
$('#div ul')。animate({left:= + 1},1);
});

有没有可以做到这一点的plugIn或其他框架?

谢谢你的回应和想法。 :)

解决方案

我在网上浏览了一下,到目前为止,看到Chrome和Safari都没有公开这些事件在浏览器中。







Firefox确实支持某些功能:



但我没有看到很多引用我猜当只有一个浏览器支持它时,使用这些事件是没有用的。


Can I use JQuery to query the Trackpad?So I can do something like this:

Pseudo Javascript (JQuery)

$(document).keyInput().trackpadTwoFingersLeft(function() {
  $('#div ul').animate({left: "=+1"},1);
});

Is there a plugIn or another framework where I can do this?
Thank you for every response and idea. :)

解决方案

I've looked around a bit on the web, and so far see that both Chrome and Safari do not expose these events in the browser.

https://superuser.com/questions/27627/three-finger-page-up-page-down-in-safari-chrome

Touch events available in Safari?

Firefox does support something:

https://developer.mozilla.org/En/DOM/Mouse_gesture_events

But I don't see a lot of references to this.

I guess when only one browser supports it, it is a bit useless to use these kind of events.

这篇关于JQuery - 我可以查询MacBook Pro触控板吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 15:53