item not moved (to alt position) when colliding fails with an object
Subject of the issue
When dragging, if the mouse position shifts downward by a certain distance after being pressed, a lagging effect occurs, making it look less "smooth." Attached is a video.
Your environment
- version of gridstack.js 10.3.1
- Windows 11 / Chrome 129
Steps to reproduce
in the demo environment https://jsfiddle.net/adumesny/jqhkry7g
https://github.com/user-attachments/assets/2ed98328-560e-4a83-b319-c240add0d1d6
Expected behavior
The first time when dragging, the mouse remains steady, and everything displays normally. From the second time onward, start dragging with the mouse on the upper part of the element, then shift downward by a certain distance, and the result is not as smooth. On the contrary, when starting to drag with the mouse on the lower part of the element and shifting upward during the drag, the process remains smooth.
pretty sure this is a dup of another bug. nothing to do with mouse lag. It's trying to collide with item below and failing to use alternative item to move when the first item fails to collide.
Also would have been helpful to modify the example to default to that layout issue, so I don't have to.
很确定这是另一个错误的重复。与鼠标延迟无关。它试图与下面的项目发生碰撞,并且当第一个项目无法碰撞时无法使用替代项目移动。
另外,将示例修改为默认布局问题也会有所帮助,这样我就不必这样做了。
Oh, thanks for the reply. I apologize for my poor English and for not being able to accurately finding the repeat issue.