diff options
| author | George Rusu <george@tagg.id> | 2021-05-26 10:48:07 -0700 |
|---|---|---|
| committer | George Rusu <george@tagg.id> | 2021-05-26 10:48:07 -0700 |
| commit | 2408c8ee0d6b2a6b2366fb66dc06c63fa2d0aa2e (patch) | |
| tree | 00682893a8dcfb83aabf31d8b9b2863f0b986159 /src/components/taggs/TaggDraggable.tsx | |
| parent | 10d3ed80b3b84956cf7364140313ea465a95ba8b (diff) | |
Fix view and edit tag jumping
Diffstat (limited to 'src/components/taggs/TaggDraggable.tsx')
| -rw-r--r-- | src/components/taggs/TaggDraggable.tsx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/components/taggs/TaggDraggable.tsx b/src/components/taggs/TaggDraggable.tsx index 7be4a88f..e31be729 100644 --- a/src/components/taggs/TaggDraggable.tsx +++ b/src/components/taggs/TaggDraggable.tsx @@ -35,16 +35,6 @@ const TaggDraggable: React.FC<TaggDraggableProps> = ( const draggableRef = useRef(null); useEffect(() => { - setTimeout(() => { - draggableRef.current.measure( - (_1: number, _2: number, width: number, height: number, px, py) => { - setStart([width, height]); - }, - ); - }, 250); - }, []); - - useEffect(() => { draggableRef.current.measure( ( fx: number, // location of ref relative to parent element |
