Add comment

This commit is contained in:
schroda
2025-02-02 01:53:50 +01:00
parent 6d47ab05c1
commit a6f015d5e3

View File

@@ -184,6 +184,7 @@ export const useMouseDragScroll = (
element.removeEventListener('mousemove', handleMouseMove);
element.removeEventListener('mouseup', handleMouseUp);
// move disabling drag handling to next event loop cycle so that e.g. the resulting mouse click at the end of the dragging can be ignored
setTimeout(() => {
isHandlingMouseMoveEvents = false;
setIsDragging(false);