Hanks10100 closed pull request #205: update stopPropagation's doc URL: https://github.com/apache/incubator-weex-site/pull/205
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/source/cn/wiki/gestures.md b/source/cn/wiki/gestures.md index 643fc220e..8c884826b 100644 --- a/source/cn/wiki/gestures.md +++ b/source/cn/wiki/gestures.md @@ -21,7 +21,7 @@ Weex 封装了原生的触摸事件以提供手势系统。使用手势类似于 - `touchstart` 将在触摸到触摸面上时触发。 - `touchmove` 将在触摸点在触摸面移动时被触发。 - `touchend` 将在从触摸面离开时被触发。 - - `shouldStopPropagation` 每个touch事件都会被传递过来, 可控制touch事件是否冒泡(返回true)或者停止(返回false);用于解决事件冲突或者自定义手势。<span class="api-version">v0.18+</span> + - `stopPropagation` 每个touch事件都会被传递过来, 可控制touch事件是否冒泡(返回true)或者停止(返回false);用于解决事件冲突或者自定义手势。<span class="api-version">v0.18+</span> - **Pan**:`pan` 手势也会返回触摸点在触摸面的移动信息,有点类似于 `touch` 手势。但是 `pan` 手势只会采样收集部分事件信息因此比 `touch` 事件要快得多,当然精准性差于 `touch`。`pan` 也有三种类型的手势,这些手势的意义与 `touch` 完全一样: diff --git a/source/wiki/gestures.md b/source/wiki/gestures.md index 92f700fef..12720f7f5 100644 --- a/source/wiki/gestures.md +++ b/source/wiki/gestures.md @@ -19,7 +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+) + * `stopPropagation` 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` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services