fix: fixed inner child resizing without dragging problem

This commit is contained in:
paul
2024-09-20 19:17:29 +05:30
parent 474601ad12
commit 59177378d2
3 changed files with 33 additions and 31 deletions

View File

@@ -16,7 +16,7 @@ const WidgetDraggable = memo(({ widgetRef, enableDrag=true, dragElementType="wid
onDragEnter, onDragLeave, onDrop,
droppableTags = ["widget"], ...props }) => {
// FIXME: It's not possible to move the widget ~10px because, its considered as self drop, so fix it
// const { draggedElement, onDragStart, onDragEnd } = useDragWidgetContext()
const { draggedElement, onDragStart, onDragEnd, overElement, setOverElement } = useDragContext()