You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by da...@apache.org on 2017/04/06 10:06:26 UTC

incubator-weex git commit: * [html5] scrollToElement method support no animation

Repository: incubator-weex
Updated Branches:
  refs/heads/0.11-dev 6f861949d -> 83a2b46c3


* [html5] scrollToElement method support no animation


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/83a2b46c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/83a2b46c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/83a2b46c

Branch: refs/heads/0.11-dev
Commit: 83a2b46c377dd494d393c32c044f8946f35f7974
Parents: 6f86194
Author: fkysly <fk...@gmail.com>
Authored: Thu Apr 6 17:59:21 2017 +0800
Committer: fkysly <fk...@gmail.com>
Committed: Thu Apr 6 17:59:21 2017 +0800

----------------------------------------------------------------------
 html5/render/vue/modules/dom.js | 4 ++++
 package.json                    | 1 +
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/83a2b46c/html5/render/vue/modules/dom.js
----------------------------------------------------------------------
diff --git a/html5/render/vue/modules/dom.js b/html5/render/vue/modules/dom.js
index 1dd7c0f..3406a4e 100644
--- a/html5/render/vue/modules/dom.js
+++ b/html5/render/vue/modules/dom.js
@@ -85,6 +85,10 @@ export default {
           + 'otherwise it may not works well on native.')
       }
 
+      if (options && options.animated === false) {
+        return scrollElement.call(scroller.$el, dSuffix, offset)
+      }
+
       step({
         scrollable: scroller.$el,
         startTime: now(),

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/83a2b46c/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 10a720e..44f3290 100644
--- a/package.json
+++ b/package.json
@@ -96,6 +96,7 @@
     "weex-styler": "0.1.9"
   },
   "devDependencies": {
+    "autoprefixer": "^6.7.7",
     "babel-core": "^6.17.0",
     "babel-eslint": "^7.2.1",
     "babel-istanbul": "^0.11.0",