mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
Clicking a reference left AvaloniaEdit's selection-drag mode stuck, so a subsequent mouse move (with no button held) extended a selection. AvaloniaEdit's SelectionMouseHandler captures the pointer and enters selection mode on press, and extends the selection on every move while that mode is active -- it keys off the mode, not whether a button is down. Only its bubble-phase PointerReleased handler resets the mode and releases the capture, and that handler early-returns when the event is already handled. The reference-click handler ran in the tunnel phase and marked the release handled before AvaloniaEdit saw it, so AvaloniaEdit's cleanup never ran. Move the release handler to the bubble phase so it runs after AvaloniaEdit has reset its state. AvaloniaEdit subscribes from the TextArea constructor, before this view attaches its handlers, so the ordering is deterministic and navigation can stay synchronous. Assisted-by: Claude:claude-opus-4-8:Claude Codepull/3796/head
2 changed files with 31 additions and 6 deletions
Loading…
Reference in new issue