Changes between Version 1 and Version 2 of Ticket #25012


Ignore:
Timestamp:
2026-11-08T07:36:51+01:00 (2 weeks ago)
Author:
daredemodaisuki
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25012 – Description

    v1 v2  
    22
    331. 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 a screenshot tool by Win+Shift+S, or switch window by Win+tab) to let JOSM main window loss focus.
     42. 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.
    553. Return to JOSM. The parallel-way preview stays frozen at the position where dragging was interrupted, and it no longer follows the mouse.
    664. Press and drag again.
    … …  
    4040           at org.openstreetmap.josm.actions.mapmode.ParallelWayAction.mouseDragged(ParallelWayAction.java:407)
    4141
    42 So the combination "mode == DRAGGING while pWays == null" is what 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.
     42So the combination "mode == DRAGGING while pWays == null" should be what triggers the crash.
    4343
    4444The 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.