@dolphinweex/weex-vue-render 0.2.75 → 0.2.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5827,6 +5827,7 @@ function getImage(weex) {
5827
5827
  if (!url || url === 'undefined') {
5828
5828
  return '';
5829
5829
  }
5830
+ url = url.replace(/\s+/g, '')
5830
5831
  // 编码空格与括号,避免 CSS url() 与资源解析失败
5831
5832
  if (url.includes(' ') || url.includes('(') || url.includes(')')) {
5832
5833
  let processed = url.replace(/\s/g, match => encodeURIComponent(match));
@@ -6087,7 +6088,7 @@ function getThrottledScroll (context) {
6087
6088
  var evtObj = {
6088
6089
  contentSize: { width: rect.width, height: rect.height },
6089
6090
  contentOffset: {
6090
- x: wrapper.scrollLeft,
6091
+ x: -wrapper.scrollLeft * rate,
6091
6092
  /**
6092
6093
  * positive direciton for y-axis is down.
6093
6094
  * so should use negative operation on scrollTop.
@@ -11009,7 +11010,7 @@ function transitionOnce (vnode, config, callback) {
11009
11010
  vnode = vnode[0];
11010
11011
  }
11011
11012
 
11012
- var duration = config.duration || 100; // ms
11013
+ var duration = config.duration || 0; // ms
11013
11014
  var timing = config.timingFunction || 'linear';
11014
11015
  var delay = config.delay || 0; // ms
11015
11016
 
package/package.json CHANGED
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "git+ssh://git@github.com/weexteam/weex-vue-render.git"
51
51
  },
52
- "version": "0.2.75"
52
+ "version": "0.2.77"
53
53
  }