Fix for the snapping issue that occurs in production build

This commit is contained in:
Aria Minaei 2021-08-05 17:23:28 +02:00
parent 6e87323d7a
commit 792850260a
4 changed files with 4 additions and 6 deletions

View file

@ -52,7 +52,7 @@ const HitZone = styled.div`
cursor: ew-resize; cursor: ew-resize;
#pointer-root.draggingpositioninsequenceeditor & { #pointer-root.draggingPositionInSequenceEditor & {
pointer-events: auto; pointer-events: auto;
} }

View file

@ -40,7 +40,7 @@ const HitZone = styled.circle`
cursor: move; cursor: move;
} }
#pointer-root.draggingpositioninsequenceeditor & { #pointer-root.draggingPositionInSequenceEditor & {
pointer-events: auto; pointer-events: auto;
} }

View file

@ -38,7 +38,7 @@ const Rod = styled.div`
border-left: 1px solid #27e0fd; border-left: 1px solid #27e0fd;
z-index: 10; z-index: 10;
#pointer-root.draggingpositioninsequenceeditor &:not(.seeking) { #pointer-root.draggingPositionInSequenceEditor &:not(.seeking) {
pointer-events: auto; pointer-events: auto;
&:after { &:after {
@ -61,7 +61,7 @@ const Thumb = styled.div`
cursor: ew-resize; cursor: ew-resize;
${pointerEventsAutoInNormalMode}; ${pointerEventsAutoInNormalMode};
#pointer-root.draggingpositioninsequenceeditor &:not(.seeking) { #pointer-root.draggingPositionInSequenceEditor &:not(.seeking) {
pointer-events: auto; pointer-events: auto;
} }

View file

@ -54,8 +54,6 @@ const PointerEventsHandler: React.FC<{
} }
}, []) }, [])
console.log(locks[0]?.cursor)
return ( return (
<context.Provider value={contextValue}> <context.Provider value={contextValue}>
<Container id={elementId} className={locks[0]?.className ?? 'normal'}> <Container id={elementId} className={locks[0]?.className ?? 'normal'}>