Skip to content

[codex] Reposition dragged item when grid scrolls#1011

Open
nexiumbiz-debug wants to merge 1 commit into
tiberiuzuld:masterfrom
nexiumbiz-debug:codex/reposition-drag-on-scroll-735
Open

[codex] Reposition dragged item when grid scrolls#1011
nexiumbiz-debug wants to merge 1 commit into
tiberiuzuld:masterfrom
nexiumbiz-debug:codex/reposition-drag-on-scroll-735

Conversation

@nexiumbiz-debug

Copy link
Copy Markdown
Contributor

Fixes #735. When the grid scrolls while a drag is active, recalculate the dragged item from the last pointer position so the item keeps tracking the cursor instead of staying at the old scroll offset. The scroll listener is registered only for the active drag and removed with the existing drag listeners. Added a regression spec for scrolling without mouse movement. Validation: npx prettier --check projects/angular-gridster2/src/lib/gridsterDraggable.ts projects/angular-gridster2/src/lib/tests/gridsterDraggable.spec.ts; npx eslint projects/angular-gridster2/src/lib/gridsterDraggable.ts projects/angular-gridster2/src/lib/tests/gridsterDraggable.spec.ts; npm run test-lib -- --watch=false; npm run build-lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dragged item doesn't move when scrolling

1 participant