@dolphinweex/weex-vue-render 0.2.110 → 0.2.112

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.
@@ -1803,9 +1803,6 @@ function touchendHandler(event) {
1803
1803
  // fire click, not tap.
1804
1804
  var rect = gesture.element.getBoundingClientRect();
1805
1805
  var rate = 750 / document.documentElement.clientWidth;
1806
- if (event.cancelable) {
1807
- event.preventDefault();
1808
- }
1809
1806
  fireEvent(gesture.element, 'weex$tap', {
1810
1807
  touch: touch,
1811
1808
  touchEvent: event,
@@ -4135,7 +4132,6 @@ function initEnv (viewportInfo, envInfo) {
4135
4132
  deviceModel: device_display.deviceModel || "",
4136
4133
  appEnv: device_display.appEnv,
4137
4134
  versionCode: device_display.versionCode,
4138
- colmoVersion: device_display.colmoVersion,
4139
4135
  idfa: device_display.idfa,
4140
4136
  isFullScreen: device_display.isFullScreen,
4141
4137
  weexVersion: device_display.weexVersion,
@@ -4144,8 +4140,10 @@ function initEnv (viewportInfo, envInfo) {
4144
4140
  navigationBarHeight: device_display.navigationBarHeight,
4145
4141
  safeAreaBottomHeight: device_display.safeAreaBottomHeight,
4146
4142
  isImmersion: device_display.isImmersion ? "true" : "false",
4147
-
4148
4143
  };
4144
+ if(device_display.colmoVersion){
4145
+ env.colmoVersion = device_display.colmoVersion
4146
+ }
4149
4147
  /**
4150
4148
  * viewportInfo: scale, deviceWidth, deviceHeight. dpr
4151
4149
  */
@@ -11555,7 +11553,8 @@ var dom = {
11555
11553
  function recalc (rect) {
11556
11554
  var res = {};
11557
11555
  rectKeys.forEach(function (key) {
11558
- if (rect[key]) {
11556
+ // left/top 为 0 时也要保留,通栏区域 left=0 不能被当成空值丢掉
11557
+ if (rect[key] != null) {
11559
11558
  res[key] = rect[key] / scale;
11560
11559
  }
11561
11560
  });
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.110"
52
+ "version": "0.2.112"
53
53
  }