Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

item not moved (to alt position) when colliding fails with an object #2819

Open
Hickays opened this issue Oct 15, 2024 · 2 comments
Open

item not moved (to alt position) when colliding fails with an object #2819

Hickays opened this issue Oct 15, 2024 · 2 comments
Labels

Comments

@Hickays
Copy link

Hickays commented Oct 15, 2024

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

20241015_145017.mp4

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.

@adumesny
Copy link
Member

adumesny commented Oct 15, 2024

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.

@adumesny adumesny changed the title When dragging, a slight mouse offset causes a "lagging" effect. item not moved when colliding fails with another object Oct 15, 2024
@adumesny adumesny changed the title item not moved when colliding fails with another object item not moved (to alt space) when colliding fails with another object Oct 15, 2024
@adumesny adumesny changed the title item not moved (to alt space) when colliding fails with another object item not moved (to alt position) when colliding fails with an object Oct 15, 2024
@Hickays
Copy link
Author

Hickays commented Oct 16, 2024

很确定这是另一个错误的重复。与鼠标延迟无关。它试图与下面的项目发生碰撞,并且当第一个项目无法碰撞时无法使用替代项目移动。

另外,将示例修改为默认布局问题也会有所帮助,这样我就不必这样做了。

Oh, thanks for the reply. I apologize for my poor English and for not being able to accurately finding the repeat issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants