Skip to content

collision: fix for single grid drag out/in#1696

Merged
adumesny merged 1 commit into
gridstack:masterfrom
adumesny:master
Mar 29, 2021
Merged

collision: fix for single grid drag out/in#1696
adumesny merged 1 commit into
gridstack:masterfrom
adumesny:master

Conversation

@adumesny

@adumesny adumesny commented Mar 29, 2021

Copy link
Copy Markdown
Member

Description

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* fix gridstack#1676
* simplified the code so cursor is what make items leave/enter (else we can get double shadow)
* no longer need `engine.isOutside()` (we use cursor leave event)
or `_isCursorOutside` (use `_temporaryRemoved`)
* we also always use 'dropover'/'dropout' to track when we enter/leave to be consistent between multi grids and single one that doesn't accept widgets
(instead of sing acceptWidgets flag)
@adumesny adumesny merged commit c7ec583 into gridstack:master Mar 29, 2021
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.

collision bug edge case: dragging large object over small ones

1 participant