Changes between Version 1 and Version 2 of Ticket #25012
- Timestamp:
- 2026-11-08T07:36:51+01:00 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25012 – Description
v1 v2 2 2 3 3 1. Switch to Parallel mode (Shift+P), select a way (or several ways forming a branchless path) and start dragging to create a parallel copy. Keep the left mouse button pressed and drag roughly halfway. 4 2. Without releasing the button, switch to another window (e.g. trigger ascreenshot tool by Win+Shift+S, or switch window byWin+tab) to let JOSM main window loss focus.4 2. Without releasing the button, switch to another window (e.g. trigger screenshot tool by Win+Shift+S, or switch window by Alt+Tab) to let JOSM main window loss focus. 5 5 3. Return to JOSM. The parallel-way preview stays frozen at the position where dragging was interrupted, and it no longer follows the mouse. 6 6 4. Press and drag again. … … 40 40 at org.openstreetmap.josm.actions.mapmode.ParallelWayAction.mouseDragged(ParallelWayAction.java:407) 41 41 42 So the combination "mode == DRAGGING while pWays == null" iswhat triggers the crash. The same stale mouseHasBeenDragged flag is also why a plain click after returning to the window takes the "end of drag" branch of mouseReleased() and clears the source ways.42 So the combination "mode == DRAGGING while pWays == null" should be what triggers the crash. 43 43 44 44 The screenshot tool is just one easy way to lose the mouseReleased event; alt-tabbing, a popup window stealing the button release, or a modal dialog appearing mid-drag should have the same effect.


