Skip to content

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

Open
@Hickays

Description

@Hickays

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions