You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "machera.li (JIRA)" <ji...@apache.org> on 2018/03/23 09:49:00 UTC
[jira] [Created] (WEEX-263) 在区域内点击或长按均会触发click事件
machera.li created WEEX-263:
-------------------------------
Summary: 在区域内点击或长按均会触发click事件
Key: WEEX-263
URL: https://issues.apache.org/jira/browse/WEEX-263
Project: Weex
Issue Type: Bug
Components: Android
Affects Versions: 0.18
Environment: 华为荣耀7
Reporter: machera.li
Assignee: zhengshihan
Attachments: weex-click-event-issue.png
给一个元素,比如DIV,绑定click事件,通过palyground测试发现,在DIV块内的任何触摸动作均为触发普通的click事件,比如正常点击、划动、长按。
对划动,如果划动的终点在绑定click事件的DIV外,则不会触发click事件,只要是在DIV块内按下,无论怎么移动你的手指,只要手指抬起时在DIV块内,click事件均会触发。
长按也是一样,无论按住多长时间,click事件都会触发。
浏览器上正常,长按、划动(DIV块内结束)均不会触发click事件.
附件图片是从浏览器上截下来的,只是为了说明点击区域。
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)