fix: make leaveWhileDragging toggled only on dragging
This commit is contained in:
parent
ce9ad634f0
commit
92eeed2700
@ -304,9 +304,11 @@ const DrawerContent = forwardRef<HTMLDivElement, DrawerContentProps>(
|
|||||||
}}
|
}}
|
||||||
onMouseDown={onMouseDown}
|
onMouseDown={onMouseDown}
|
||||||
onMouseLeave={() =>
|
onMouseLeave={() =>
|
||||||
|
dragState.isDragging &&
|
||||||
setState((prev) => ({ ...prev, leaveWhileDragging: true }))
|
setState((prev) => ({ ...prev, leaveWhileDragging: true }))
|
||||||
}
|
}
|
||||||
onMouseEnter={() =>
|
onMouseEnter={() =>
|
||||||
|
dragState.isDragging &&
|
||||||
setState((prev) => ({ ...prev, leaveWhileDragging: false }))
|
setState((prev) => ({ ...prev, leaveWhileDragging: false }))
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user