indicator-ui 0.1.113 → 0.1.114

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/index.js CHANGED
@@ -54336,10 +54336,11 @@ function useDrag() {
54336
54336
  });
54337
54337
  }, []);
54338
54338
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
54339
+ var _window;
54339
54340
  var obj = getObj();
54340
54341
  obj === null || obj === void 0 || obj.addEventListener("mousedown", onStart);
54341
54342
  obj === null || obj === void 0 || obj.addEventListener("mousemove", onMove);
54342
- obj === null || obj === void 0 || obj.addEventListener("mouseup", onEnd);
54343
+ (_window = window) === null || _window === void 0 || _window.addEventListener("mouseup", onEnd);
54343
54344
  obj === null || obj === void 0 || obj.addEventListener("touchstart", onStart);
54344
54345
  obj === null || obj === void 0 || obj.addEventListener("touchmove", onMove, {
54345
54346
  passive: false
@@ -54352,9 +54353,10 @@ function useDrag() {
54352
54353
  obj === null || obj === void 0 || obj.removeEventListener("mouseleave", onEnd);
54353
54354
  }
54354
54355
  return function () {
54356
+ var _window2;
54355
54357
  obj === null || obj === void 0 || obj.removeEventListener("mousedown", onStart);
54356
54358
  obj === null || obj === void 0 || obj.removeEventListener("mousemove", onMove);
54357
- obj === null || obj === void 0 || obj.removeEventListener("mouseup", onEnd);
54359
+ (_window2 = window) === null || _window2 === void 0 || _window2.removeEventListener("mouseup", onEnd);
54358
54360
  obj === null || obj === void 0 || obj.removeEventListener("touchstart", onStart);
54359
54361
  obj === null || obj === void 0 || obj.removeEventListener("touchmove", onMove);
54360
54362
  obj === null || obj === void 0 || obj.removeEventListener("touchend", onEnd);