Skip to content

Commit

Permalink
chore: fix dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Jan 21, 2024
1 parent 495e9e8 commit ac6f854
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ export const PartButtonView: React.FC<{
)

useEffect(() => {
console.log('dragRef', dragRef.current)

Check warning on line 570 in apps/app/src/react/components/rundown/GroupView/PartButtonView.tsx

View workflow job for this annotation

GitHub Actions / Typecheck, Lint & Test

Unexpected console statement

Check warning on line 570 in apps/app/src/react/components/rundown/GroupView/PartButtonView.tsx

View workflow job for this annotation

GitHub Actions / Typecheck, Lint & Test

Unexpected console statement
drag(dragRef)
}, [drag])

Expand Down Expand Up @@ -671,13 +672,16 @@ export const PartButtonView: React.FC<{
>
<div className={classNames('part-button__header', tabAdditionalClassNames)}>
<div className="part-button__header__controls">
{!groupLocked && (
<div ref={dragRef} className="part-button__drag-handle">
<MdOutlineDragIndicator color="rgba(0, 0, 0, 0.5)" />
</div>
)}

{renderEverything && (
<>
{!groupLocked ? (
<>
<div ref={dragRef} className="part-button__drag-handle">
<MdOutlineDragIndicator color="rgba(0, 0, 0, 0.5)" />
</div>
<PartEditControls
rundownId={rundownId}
parentGroupId={parentGroupId}
Expand Down

0 comments on commit ac6f854

Please sign in to comment.