pragmatic-drag-and-drop icon indicating copy to clipboard operation
pragmatic-drag-and-drop copied to clipboard

Mouse Pointer Stuck to Top Left in Drag Preview Despite Using `preserveOffsetOnSource` Utility

Open RabiRoshan opened this issue 9 months ago • 3 comments

Issue:

I'm attempting to replicate the Board Example, but I'm encountering an issue where the mouse pointer on the drag preview is consistently stuck to the top left corner, unlike the example in the documentation. I'm unsure if I'm misinterpreting the utility preserveOffsetOnSource, but it doesn't seem to work for me. In the meantime, I found a workaround using the solution mentioned here: https://github.com/atlassian/pragmatic-drag-and-drop/issues/25#issuecomment-2043678626. It would be fantastic if this issue could be resolved according to the documentation.

This library is excellent, and I would love to contribute! ❤️

Versions:

  • "react": "^18.2.0"
  • "@atlaskit/pragmatic-drag-and-drop": "^1.1.7"

Import used:

import { preserveOffsetOnSource } from '@atlaskit/pragmatic-drag-and-drop/element/preserve-offset-on-source'

RabiRoshan avatar May 14 '24 04:05 RabiRoshan