@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.
- package/dist/index.common.js +1 -4
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -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 >
|
|
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