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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dolphin-weex-ui",
3
- "version": "2.3.21",
3
+ "version": "2.3.22",
4
4
  "description": "inteligense cross platform frame",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -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'
@@ -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