@royaloperahouse/harmonic 0.1.8-n → 0.1.8-o

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.
@@ -7638,8 +7638,6 @@ var Swipe = /*#__PURE__*/forwardRef(function (_ref, ref) {
7638
7638
  var handleMouseMove = function handleMouseMove(e) {
7639
7639
  if (!isDragging.current || !isMouseDown.current || transitioning) return;
7640
7640
  var deltaX = e.clientX - startX.current;
7641
- // eslint-disable-next-line no-console
7642
- console.log('handleMouseMove', isClickPrevented.current, CLICK_DRAG_THRESHOLD, deltaX);
7643
7641
  if (Math.abs(deltaX) > CLICK_DRAG_THRESHOLD) {
7644
7642
  isClickPrevented.current = true;
7645
7643
  }
@@ -7651,8 +7649,6 @@ var Swipe = /*#__PURE__*/forwardRef(function (_ref, ref) {
7651
7649
  if (!isMouseDown.current) return;
7652
7650
  isMouseDown.current = false;
7653
7651
  isDragging.current = false;
7654
- // eslint-disable-next-line no-console
7655
- console.log('handleMouseUp', isClickPrevented.current, CLICK_DRAG_THRESHOLD);
7656
7652
  if (isClickPrevented.current) {
7657
7653
  navigateOnSwipeEnd();
7658
7654
  } else {
@@ -7670,8 +7666,6 @@ var Swipe = /*#__PURE__*/forwardRef(function (_ref, ref) {
7670
7666
  isMouseDown.current = true;
7671
7667
  isClickPrevented.current = false;
7672
7668
  setTransitioning(false);
7673
- // eslint-disable-next-line no-console
7674
- console.log('handleMouseDown', isClickPrevented, CLICK_DRAG_THRESHOLD);
7675
7669
  window.addEventListener('mousemove', handleMouseMove);
7676
7670
  window.addEventListener('mouseup', _handleMouseUp);
7677
7671
  };
@@ -7693,12 +7687,16 @@ var Swipe = /*#__PURE__*/forwardRef(function (_ref, ref) {
7693
7687
  onTouchMove: handleTouchMove,
7694
7688
  onTouchEnd: handleTouchEnd,
7695
7689
  onMouseDown: handleMouseDown,
7690
+ onDragStart: function onDragStart(e) {
7691
+ return e.preventDefault();
7692
+ },
7696
7693
  className: "swipe"
7697
7694
  }, props), /*#__PURE__*/React__default.createElement(SwipeTrack, {
7698
7695
  className: "swipe-track-wrapper",
7699
7696
  translateX: dragTranslateX !== null ? dragTranslateX : getTranslateX(),
7700
7697
  transitioning: transitioning && dragTranslateX === null,
7701
- onTransitionEnd: handleTransitionEnd
7698
+ onTransitionEnd: handleTransitionEnd,
7699
+ onClickCapture: onClickCapture
7702
7700
  }, slides.map(function (child, index) {
7703
7701
  var isVisible = visibleIndexes.includes(index);
7704
7702
  return /*#__PURE__*/React__default.cloneElement(child, {
@@ -7710,9 +7708,7 @@ var Swipe = /*#__PURE__*/forwardRef(function (_ref, ref) {
7710
7708
  },
7711
7709
  onFocus: function onFocus() {
7712
7710
  return onSlideFocus(isVisible, index);
7713
- },
7714
- onClick: onClickCapture,
7715
- onClickCapture: onClickCapture
7711
+ }
7716
7712
  });
7717
7713
  })));
7718
7714
  });