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}
|
||||
onMouseLeave={() =>
|
||||
dragState.isDragging &&
|
||||
setState((prev) => ({ ...prev, leaveWhileDragging: true }))
|
||||
}
|
||||
onMouseEnter={() =>
|
||||
dragState.isDragging &&
|
||||
setState((prev) => ({ ...prev, leaveWhileDragging: false }))
|
||||
}
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user