@mpxjs/api-proxy
Advanced tools
Comparing version 2.9.0-beta.3 to 2.9.0-beta.5
{ | ||
"name": "@mpxjs/api-proxy", | ||
"version": "2.9.0-beta.3", | ||
"version": "2.9.0-beta.5", | ||
"description": "convert miniprogram API at each end", | ||
@@ -42,3 +42,3 @@ "module": "src/index.js", | ||
}, | ||
"gitHead": "521f0cec1231962f9c071c8b70499772a0a81fda" | ||
"gitHead": "874e5d0915a28d527091090ff64ad2d182e43525" | ||
} |
@@ -139,4 +139,12 @@ import NodesRef from './NodesRef' | ||
if (scrollOffset) { | ||
res.scrollLeft = el.scrollLeft | ||
res.scrollTop = el.scrollTop | ||
if (el.isBScrollContainer) { | ||
const bs = el?.__vue__?.bs | ||
res.scrollLeft = -bs.x | ||
res.scrollTop = -bs.y | ||
} else { | ||
res.scrollLeft = el.scrollLeft | ||
res.scrollTop = el.scrollTop | ||
} | ||
res.scrollHeight = el.scrollHeight | ||
res.scrollWidth = el.scrollWidth | ||
} | ||
@@ -143,0 +151,0 @@ properties.forEach(prop => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
126219
3344