在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:furf/jquery-ui-touch-punch开源软件地址:https://github.com/furf/jquery-ui-touch-punch开源编程语言:开源软件介绍:jQuery UI Touch PunchTouch Event Support for jQuery UI
Visit the official Touch Punch website. Currently, jQuery UI user interface library does not support the use of touch events in their widgets and interactions. This means that the slick UI you designed and tested in your desktop browser will fail on most, if not all, touch-enabled mobile devices, because jQuery UI listens to mouse events—mouseover, mousemove and mouseout—not touch events—touchstart, touchmove and touchend. That's where jQuery UI Touch Punch comes in. Touch Punch works by using simulated events to map touch events to their mouse event analogs. Simply include the script on your page and your touch events will be turned into their corresponding mouse events to which jQuery UI will respond as expected. As I said, Touch Punch is a hack. It duck punches some of jQuery UI's core functionality to handle the mapping of touch events. Touch Punch works with all basic implementations of jQuery UI's interactions and widgets. However, you may find more complex cases where Touch Punch fails. If so, scroll down to learn how you can file and/or fix issues. This code is dual licensed under the MIT or GPL Version 2 licenses and is therefore free to use, modify and/or distribute, but if you include Touch Punch in other software packages or plugins, please include an attribution to the original software and a link to this Touch Punch website. Using Touch Punch is as easy as 1, 2…Just follow these simple steps to enable touch events in your jQuery UI app:
Tested on iPad, iPhone, Android and other touch-enabled mobile devices. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论