From df4a396efcecb118e18afebe9965b1f072dc4476 Mon Sep 17 00:00:00 2001 From: Ruben Thoms Date: Mon, 9 Sep 2024 13:57:23 +0200 Subject: [PATCH] fix --- frontend/src/lib/components/SortableList/sortableList.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/frontend/src/lib/components/SortableList/sortableList.tsx b/frontend/src/lib/components/SortableList/sortableList.tsx index bd71a6c25..c10ad92a0 100644 --- a/frontend/src/lib/components/SortableList/sortableList.tsx +++ b/frontend/src/lib/components/SortableList/sortableList.tsx @@ -224,13 +224,6 @@ export function SortableList(props: SortableListProps): React.ReactNode { return { element, area: getHoveredAreaOfItem(element, e) }; } } - const directChildren = elements.filter((el) => el.parentElement === currentListDivRef); - if ( - mainDivRef.current && - rectContainsPoint(mainDivRef.current.getBoundingClientRect(), vec2FromPointerEvent(e)) - ) { - return { element: directChildren[directChildren.length - 1], area: HoveredArea.BOTTOM }; - } // If no element was found, check if the pointer is in the bottom area of the main list const directChildren = elements.filter((el) => el.parentElement === currentListDivRef);