@dolphinweex/weex-vue-render 0.2.97 → 0.2.99

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.
@@ -2746,7 +2746,7 @@ function init$1 (viewportWidth) {
2746
2746
  var newWidth = doc.documentElement.clientWidth;
2747
2747
  var newHeight = doc.documentElement.clientHeight;
2748
2748
  console.log('[px2rem] poll@' + label + ': clientWidth=' + newWidth + ' (was ' + screenWidth + ')');
2749
- if (newWidth > screenWidth) {
2749
+ if (newWidth > screenWidt && window.orientation === 0) {
2750
2750
  console.log('[px2rem] poll@' + label + ' FIX triggered: ' + screenWidth + ' -> ' + newWidth);
2751
2751
  screenWidth = newWidth;
2752
2752
  screenHeight = newHeight;
@@ -2766,9 +2766,6 @@ function init$1 (viewportWidth) {
2766
2766
  _checkAndFix(300, '300ms');
2767
2767
  _checkAndFix(600, '600ms');
2768
2768
  _checkAndFix(1000, '1000ms');
2769
- window.addEventListener('resize', function () {
2770
- _checkAndFix(0, 'resize');
2771
- });
2772
2769
  /**
2773
2770
  * why not to use window.screen.width to get screenWidth ? Because in some
2774
2771
  * old webkit browser on android system it get the device pixel width, which
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.97"
52
+ "version": "0.2.99"
53
53
  }