touchend - Web API 接口参考 编辑

当触点离开触控平面时触发touchend事件.

常规信息

规范
Touch Events
接口
TouchEvent
是否冒泡
Yes
能否取消默认行为
Yes
目标
Document, Element
默认行为

属性

PropertyTypeDescription
target 只读EventTargetThe event target (the topmost target in the DOM tree).
type 只读DOMStringThe type of event.
bubbles 只读BooleanWhether the event normally bubbles or not.
cancelable 只读BooleanWhether the event is cancellable or not.
view 只读WindowProxydocument.defaultView (window of the document)
detail 只读long (float)0.
touches 只读TouchListA list of Touches for every point of contact currently touching the surface.
targetTouches 只读TouchListA list of Touches for every point of contact that is touching the surface and started on the element that is the target of the current event.
changedTouches 只读TouchListA list of Touches for every point of contact which contributed to the event.
For the touchstart event this must be a list of the touch points that just became active with the current event. For the touchmove event this must be a list of the touch points that have moved since the last event. For the touchend and touchcancel events this must be a list of the touch points that have just been removed from the surface.
ctrlKey 只读booleantrue if the control key was down when the event was fired. false otherwise.
shiftKey 只读booleantrue if the shift key was down when the event was fired. false otherwise.
altKey 只读booleantrue if the alt key was down when the event was fired. false otherwise.
metaKey 只读booleantrue if the meta key was down when the event was fired. false otherwise.

例子

这些事件的代码示例在这个页面Touch events中均有体现.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:41 次

字数:4649

最后编辑:8年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文