@tarojs/plugin-platform-harmony-ets 4.0.0-beta.121 → 4.0.0-beta.122
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/runtime.js
CHANGED
|
@@ -31,6 +31,7 @@ import router from '@ohos.router';
|
|
|
31
31
|
import bundleManager from '@ohos.bundle.bundleManager';
|
|
32
32
|
import distributedKVStore from '@ohos.data.distributedKVStore';
|
|
33
33
|
import matrix4 from '@ohos.matrix4';
|
|
34
|
+
import { pxTransformHelper as pxTransformHelper$1 } from '@tarojs/taro';
|
|
34
35
|
|
|
35
36
|
class MethodHandler {
|
|
36
37
|
constructor({ name, success, fail, complete }) {
|
|
@@ -4038,7 +4039,7 @@ const pageScrollTo = (options) => {
|
|
|
4038
4039
|
scroller = getPageScrollerOrNode(scroller, page);
|
|
4039
4040
|
const { yOffset } = scroller.currentOffset();
|
|
4040
4041
|
if (areaInfo) {
|
|
4041
|
-
scrollValue = areaInfo.globalPosition.y + yOffset + pxTransformHelper(offsetTop, 'px', true);
|
|
4042
|
+
scrollValue = areaInfo.globalPosition.y + yOffset + pxTransformHelper$1(offsetTop, 'px', true);
|
|
4042
4043
|
}
|
|
4043
4044
|
}
|
|
4044
4045
|
if (!scroller || scrollValue === -1) {
|