aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/TaggDraggable.tsx
diff options
context:
space:
mode:
authorGeorge Rusu <george@tagg.id>2021-05-26 10:48:07 -0700
committerGeorge Rusu <george@tagg.id>2021-05-26 10:48:07 -0700
commit2408c8ee0d6b2a6b2366fb66dc06c63fa2d0aa2e (patch)
tree00682893a8dcfb83aabf31d8b9b2863f0b986159 /src/components/taggs/TaggDraggable.tsx
parent10d3ed80b3b84956cf7364140313ea465a95ba8b (diff)
Fix view and edit tag jumping
Diffstat (limited to 'src/components/taggs/TaggDraggable.tsx')
-rw-r--r--src/components/taggs/TaggDraggable.tsx10
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