@rc-component/trigger 1.15.4 → 1.15.5
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/es/util.js +1 -1
- package/lib/util.js +1 -1
- package/package.json +1 -1
package/es/util.js
CHANGED
|
@@ -97,7 +97,7 @@ function getPxValue(val) {
|
|
|
97
97
|
export function getVisibleArea(initArea, scrollerList) {
|
|
98
98
|
var visibleArea = _objectSpread({}, initArea);
|
|
99
99
|
(scrollerList || []).forEach(function (ele) {
|
|
100
|
-
if (ele instanceof HTMLBodyElement) {
|
|
100
|
+
if (ele instanceof HTMLBodyElement || ele instanceof HTMLHtmlElement) {
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
|
package/lib/util.js
CHANGED
|
@@ -109,7 +109,7 @@ function getPxValue(val) {
|
|
|
109
109
|
function getVisibleArea(initArea, scrollerList) {
|
|
110
110
|
var visibleArea = (0, _objectSpread2.default)({}, initArea);
|
|
111
111
|
(scrollerList || []).forEach(function (ele) {
|
|
112
|
-
if (ele instanceof HTMLBodyElement) {
|
|
112
|
+
if (ele instanceof HTMLBodyElement || ele instanceof HTMLHtmlElement) {
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
115
|
|