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