You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/12/14 09:30:18 UTC

[incubator-weex-site] branch draft updated: stopPropagation case (#234)

This is an automated email from the ASF dual-hosted git repository.

hanks pushed a commit to branch draft
in repository https://gitbox.apache.org/repos/asf/incubator-weex-site.git


The following commit(s) were added to refs/heads/draft by this push:
     new 4d4c9cb  stopPropagation case (#234)
4d4c9cb is described below

commit 4d4c9cb4da9f1fbb53b62d5a6fee0ce48a88e21c
Author: codefurture <gu...@163.com>
AuthorDate: Fri Dec 14 17:30:14 2018 +0800

    stopPropagation case (#234)
    
    stopPropagation case
---
 docs/docs/events/common-events.md | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/docs/docs/events/common-events.md b/docs/docs/events/common-events.md
index 2f73a5b..9720c38 100644
--- a/docs/docs/events/common-events.md
+++ b/docs/docs/events/common-events.md
@@ -54,6 +54,19 @@ If a `disappear` event is bound to a component inside a scrollable container, th
 - `timestamp` : Timestamp when event is triggered
 - `direction` : The direction in which the scroller is scrolling. Could be `up` or `down`.
 
+## stopPropagation
+
+when you want to handler list in list, scroller in list which has touch conflict touch scene. you can use this to control touch dispatch.
+together with the following attr to achive smooth nest scroll.
+
+shouldStopPropagationInitResult : default true/false,
+
+shouldStopPropagationInterval  : control touch call frequency with js. reduce js call with native.
+
+### Example
+
+[Scroller With List](http://dotwe.org/vue/48ddb2f7339d1fb116135900a2dbc8e5)
+
 ## Page event
 
 Weex provides you with simple management of page status, such as `viewappear` and `viewdisappear`.