From 792850260ae86cee654ea9187349cdb2f8129c7c Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Thu, 5 Aug 2021 17:23:28 +0200 Subject: [PATCH] Fix for the snapping issue that occurs in production build --- .../Right/BasicKeyframedTrack/KeyframeEditor/Dot.tsx | 2 +- .../GraphEditor/BasicKeyframedTrack/KeyframeEditor/Dot.tsx | 2 +- .../src/panels/SequenceEditorPanel/RightOverlay/Playhead.tsx | 4 ++-- theatre/studio/src/uiComponents/PointerEventsHandler.tsx | 2 -- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/Dot.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/Dot.tsx index c4eed86..45f4497 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/Dot.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/Dot.tsx @@ -52,7 +52,7 @@ const HitZone = styled.div` cursor: ew-resize; - #pointer-root.draggingpositioninsequenceeditor & { + #pointer-root.draggingPositionInSequenceEditor & { pointer-events: auto; } diff --git a/theatre/studio/src/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Dot.tsx b/theatre/studio/src/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Dot.tsx index c5d7d75..7aa606f 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Dot.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/GraphEditor/BasicKeyframedTrack/KeyframeEditor/Dot.tsx @@ -40,7 +40,7 @@ const HitZone = styled.circle` cursor: move; } - #pointer-root.draggingpositioninsequenceeditor & { + #pointer-root.draggingPositionInSequenceEditor & { pointer-events: auto; } diff --git a/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/Playhead.tsx b/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/Playhead.tsx index 77c6af9..6351dd8 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/Playhead.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/RightOverlay/Playhead.tsx @@ -38,7 +38,7 @@ const Rod = styled.div` border-left: 1px solid #27e0fd; z-index: 10; - #pointer-root.draggingpositioninsequenceeditor &:not(.seeking) { + #pointer-root.draggingPositionInSequenceEditor &:not(.seeking) { pointer-events: auto; &:after { @@ -61,7 +61,7 @@ const Thumb = styled.div` cursor: ew-resize; ${pointerEventsAutoInNormalMode}; - #pointer-root.draggingpositioninsequenceeditor &:not(.seeking) { + #pointer-root.draggingPositionInSequenceEditor &:not(.seeking) { pointer-events: auto; } diff --git a/theatre/studio/src/uiComponents/PointerEventsHandler.tsx b/theatre/studio/src/uiComponents/PointerEventsHandler.tsx index 3fe406d..06a0113 100644 --- a/theatre/studio/src/uiComponents/PointerEventsHandler.tsx +++ b/theatre/studio/src/uiComponents/PointerEventsHandler.tsx @@ -54,8 +54,6 @@ const PointerEventsHandler: React.FC<{ } }, []) - console.log(locks[0]?.cursor) - return (