dolphin-weex-ui 2.3.21 → 2.3.22
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/CHANGELOG.md +5 -0
- package/dist/index.native.js +57 -40
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +57 -40
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/utils/index.js +0 -4
- package/packages/utils/touch.js +4 -2
package/package.json
CHANGED
package/packages/utils/index.js
CHANGED
|
@@ -199,10 +199,6 @@ const Utils = {
|
|
|
199
199
|
const { platform } = weex.config.env
|
|
200
200
|
return platform.toLowerCase() === 'android'
|
|
201
201
|
},
|
|
202
|
-
isHarmony() {
|
|
203
|
-
const { platform } = weex.config.env
|
|
204
|
-
return platform.toLowerCase() === 'harmony'
|
|
205
|
-
},
|
|
206
202
|
isBuGu() {
|
|
207
203
|
const { appName } = weex.config.env
|
|
208
204
|
return appName === 'BG'
|
package/packages/utils/touch.js
CHANGED
|
@@ -83,10 +83,12 @@ export class Touch {
|
|
|
83
83
|
this.moveStartY = e.screenY
|
|
84
84
|
// 判断为折叠机
|
|
85
85
|
let isFoldAble = this.systemInfo.screenWidth > this.envConfig.deviceWidth? true : false
|
|
86
|
-
|
|
86
|
+
// 是否iPad
|
|
87
|
+
const isIPad = WXEnvironment && WXEnvironment.deviceModel.indexOf('iPad') === 0
|
|
88
|
+
|
|
87
89
|
// ios或正常屏机型,保持位移X用screenX
|
|
88
90
|
// 折叠机展开则用计算出实际x坐标大小
|
|
89
|
-
this.startX = (this.isIos || !isFoldAble)?e.screenX : e.screenX - (((this.systemInfo.screenWidth - this.envConfig.deviceWidth)/ this.envConfig.scale ))
|
|
91
|
+
this.startX = isIPad ? e.pageX : (this.isIos || !isFoldAble)?e.screenX : e.screenX - (((this.systemInfo.screenWidth - this.envConfig.deviceWidth)/ this.envConfig.scale ))
|
|
90
92
|
this.startY = e.screenY
|
|
91
93
|
}
|
|
92
94
|
|