From 2408c8ee0d6b2a6b2366fb66dc06c63fa2d0aa2e Mon Sep 17 00:00:00 2001 From: George Rusu Date: Wed, 26 May 2021 10:48:07 -0700 Subject: Fix view and edit tag jumping --- src/components/taggs/TaggDraggable.tsx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/components/taggs') 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 @@ -34,16 +34,6 @@ const TaggDraggable: React.FC = ( 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( ( -- cgit v1.2.3-70-g09d2