intelicoreact 1.3.84 → 1.3.86
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.
|
@@ -15,7 +15,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
15
15
|
|
|
16
16
|
var _reactFeather = require("react-feather");
|
|
17
17
|
|
|
18
|
-
var _useIsMobile = _interopRequireDefault(require("
|
|
18
|
+
var _useIsMobile = _interopRequireDefault(require("../../../Functions/useIsMobile"));
|
|
19
19
|
|
|
20
20
|
var _utils = require("../../../Functions/utils");
|
|
21
21
|
|
|
@@ -483,7 +483,7 @@ function RangeSlider2(_ref) {
|
|
|
483
483
|
const onTriggerMove = e => {
|
|
484
484
|
var _e$touches$, _e$touches;
|
|
485
485
|
|
|
486
|
-
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
486
|
+
if (e !== null && e !== void 0 && e.cancelable) e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
487
487
|
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
488
488
|
|
|
489
489
|
if (!movingTriggerIndex || !movingTrigger) {
|
|
@@ -545,8 +545,7 @@ function RangeSlider2(_ref) {
|
|
|
545
545
|
if (movingController) {
|
|
546
546
|
if (isMobile) {
|
|
547
547
|
document.addEventListener("touchmove", onTriggerMove, {
|
|
548
|
-
signal: movingController === null || movingController === void 0 ? void 0 : movingController.signal
|
|
549
|
-
passive: false
|
|
548
|
+
signal: movingController === null || movingController === void 0 ? void 0 : movingController.signal
|
|
550
549
|
});
|
|
551
550
|
} else {
|
|
552
551
|
document.addEventListener("mousemove", onTriggerMove, {
|