Skip to content

[Bug]: Tokens can jump at start of drag when using overlays #5901

@kwvanderlinde

Description

@kwvanderlinde

Describe the Bug

If any HTML5 overlay is open, there is a chance that a token will jump to a seemingly random location at the start of a drag.

To Reproduce

  1. Open a campaign.
  2. Open an overlay, e.g., via [r, overlay("test"): {}]
  3. Add a token to the map.
  4. Start dragging the token while the mouse is in motion.
    • It's important not to hold the mouse over the token, then press, then drag. It needs to be a smooth operation.
  5. Repeat step (4) until the issue surfaces. It should only take a few tries.

Expected Behaviour

Tokens should never jump at the start of a drag, whether or not overlays are open.

Screenshots

No response

MapTool Info

1.18.6

Desktop

Linux Mint 22.2

Additional Context

This is likely caused by #4946, with subsequent fixes failing to catch this specific issue caused by overlays.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Merged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions