@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 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/trigger",
3
- "version": "1.15.4",
3
+ "version": "1.15.5",
4
4
  "description": "base abstract trigger component for react",
5
5
  "engines": {
6
6
  "node": ">=8.x"