Repository: incubator-weex-site Updated Branches: refs/heads/master 49c0c4a32 -> e586bc467
[doc][android] Weex Document Gesture (resolve #28) Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/e586bc46 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/e586bc46 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/e586bc46 Branch: refs/heads/master Commit: e586bc467d3565adeafa647eb49f8635f16a0d36 Parents: 49c0c4a Author: Hanks <zhanghan...@gmail.com> Authored: Thu Jan 18 12:21:58 2018 +0800 Committer: Hanks <zhanghan...@gmail.com> Committed: Thu Jan 18 12:21:58 2018 +0800 ---------------------------------------------------------------------- source/cn/wiki/gestures.md | 1 + source/references/components/list.md | 1 + source/wiki/gestures.md | 1 + 3 files changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/e586bc46/source/cn/wiki/gestures.md ---------------------------------------------------------------------- diff --git a/source/cn/wiki/gestures.md b/source/cn/wiki/gestures.md index dd75b31..1d2c207 100644 --- a/source/cn/wiki/gestures.md +++ b/source/cn/wiki/gestures.md @@ -21,6 +21,7 @@ Weex å°è£ äºåçç触æ¸äºä»¶ä»¥æä¾æå¿ç³»ç»ãä½¿ç¨æå¿ç±»ä¼¼äº - `touchstart` å°å¨è§¦æ¸å°è§¦æ¸é¢ä¸æ¶è§¦åã - `touchmove` å°å¨è§¦æ¸ç¹å¨è§¦æ¸é¢ç§»å¨æ¶è¢«è§¦åã - `touchend` å°å¨ä»è§¦æ¸é¢ç¦»å¼æ¶è¢«è§¦åã + - `shouldStopPropagation` æ¯ä¸ªtouchäºä»¶é½ä¼è¢«ä¼ éè¿æ¥, 坿§å¶touchäºä»¶æ¯å¦å泡ï¼è¿åtrueï¼æè 忢ï¼è¿åfalseï¼ï¼ç¨äºè§£å³äºä»¶å²çªæè èªå®ä¹æå¿ã<span class="api-version">v0.18+</span> - **Pan**ï¼`pan` æå¿ä¹ä¼è¿å触æ¸ç¹å¨è§¦æ¸é¢çç§»å¨ä¿¡æ¯ï¼æç¹ç±»ä¼¼äº `touch` æå¿ã使¯ `pan` æå¿åªä¼éæ ·æ¶éé¨åäºä»¶ä¿¡æ¯å æ¤æ¯ `touch` äºä»¶è¦å¿«å¾å¤ï¼å½ç¶ç²¾åæ§å·®äº `touch`ã`pan` 乿ä¸ä¸ç±»åçæå¿ï¼è¿äºæå¿çæä¹ä¸ `touch` å®å ¨ä¸æ ·ï¼ http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/e586bc46/source/references/components/list.md ---------------------------------------------------------------------- diff --git a/source/references/components/list.md b/source/references/components/list.md index 253d86d..a9f90f1 100644 --- a/source/references/components/list.md +++ b/source/references/components/list.md @@ -39,6 +39,7 @@ Please checkout [Scroller Component Attributes](./scroller.html) to have a look ### Styles + common styles: check out [common styles for components](../common-style.html) * support flexbox related styles http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/e586bc46/source/wiki/gestures.md ---------------------------------------------------------------------- diff --git a/source/wiki/gestures.md b/source/wiki/gestures.md index 232d6b1..cb3cb69 100644 --- a/source/wiki/gestures.md +++ b/source/wiki/gestures.md @@ -19,6 +19,7 @@ For now, there are four types of gestures: * `touchstart` will be fired when a touch point is placed on the touch surface. * `touchmove` will be fired when a touch point is moved along the touch surface. * `touchend` will be fired when a touch point is removed from the touch surface. + * `shouldStopPropagation` every touch event will be fired, you can control touch event whether should be bubbled by return true(should bubble) or false(touch event consumed by this view, will not be bubbled). this can be used to handle touch confliction between views. (since v0.18+) * **Pan**. Pan gesture also report motion of touch point on the touch surface, which is similar to touch gesture. But Pan gesture is sampled and faster than the touch event. As consequence, it is less accuracy than touch gesture. There are also three types of Pan gesture, and the meaning of these types is very close to types of Touch. * `panstart` * `panmove`