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
- Open a campaign.
- Open an overlay, e.g., via
[r, overlay("test"): {}]
- Add a token to the map.
- 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.
- 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.