微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

jQuery Touch

程序名称:jQuery Touch

授权协议: 未知

操作系统: 未知

开发语言:

jQuery Touch 介绍

This plugin adds Apple iPod/iPhone (firmware 2.0+) touch functionality to
jQuery. Use built in Touch methods including ontouchstart, ontouchend,
ontouchmove, ongesturestart, ongesturechange and ongestureend.

You may specify what options you want available for the specified target(s),
including: animate, dragx, dragy, rotate, resort and scale.

Written By: Peter Schmalfeldt ( Manifest Interactive )

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


@R_982_4045@ION:

animate: (optional bool | default true) Simulates the Apple Touch Flick
gesture and allows an item to be thrown. Speed is automatically determined.

dragx: (optional bool | default true) Allows dragging along the X axis.
Using only one axis locks the dragging to that axis. Setting both axis’ to
true will allow you to drag in any direction.

dragy: (optional bool | default true) Allows dragging along the Y axis.
Using only one axis locks the dragging to that axis. Setting both axis’ to
true will allow you to drag in any direction.

rotate: (optional bool | default false) Allow the element to be rotated.

resort: (optional bool | default true) Set the z-index of the current
element on top of the others ontouchstart.

scale: (optional bool | default false) Allow the element to be scaled.

NOTE: This is only functional an the Apple iPod/iPhone running version
2.0+. Elements also need to have a unique ID in order for jQuery Touch to
communicate correctly. Also, I am currently working on the ability to allow
for a “sticky” element. This will soon allow you to apply this plugin to a
scrolling text Box and be able to scroll its entirety without having the
content just move to wherever your finger is located.

SAMPLE USAGE:

$('.myclass').touch({ animate: true, sticky: false, dragx: true, dragy: true, rotate: true, resort: true, scale: true });

$('#myelement').touch({ animate: false, sticky: false, dragx: true, dragy: true, rotate: false, resort: true, scale: false });

jQuery Touch 官网

http://plugins.jquery.com/project/touch

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐