-
-
Notifications
You must be signed in to change notification settings - Fork 198
Open
Labels
aienhancementNew feature or requestNew feature or requestperformancePerformance improvements and optimizationsPerformance improvements and optimizations
Description
Context
Currently, Neo.main.addon.GridDragScroll initiates a drag operation immediately upon a mousedown or touchstart event. This converts the cursor to grabbing instantly, which can feel aggressive and lead to accidental scroll starts when the user merely intended to click or select.
Objective
Adopt the delay and minDistance pattern found in Neo.main.draggable.sensor.Mouse to ensure drag operations are intentional.
Requirements
- Add Configs:
delay: Default to100(ms).minDistance: Default to5(px).
- State Tracking:
- Track
mouseDownTime. - Track start coordinates.
- Track
mouseDownTimeout.
- Track
- Logic Update:
onDragStartshould not immediately setactiveDragor change the cursor.- Instead, it should start monitoring
mousemove/touchmove. - The drag (and cursor change) should only activate once both conditions are met (following the
Mouse.mjspattern):timeElapsed >= delaydistanceTravelled >= minDistance
Goal
Improve the "feel" of grid interactions by preventing accidental drags during normal click operations.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aienhancementNew feature or requestNew feature or requestperformancePerformance improvements and optimizationsPerformance improvements and optimizations