BAndysc / nodify-avalonia

Highly performant and modular controls for node-based editors designed for data-binding and MVVM for Avalonia. Port of WPF's version: https://miroiu.github.io/nodify
https://github.com/BAndysc/nodify-avalonia
MIT License
78 stars 5 forks source link

[Bug] Releasing mouse right button when panning is not handled properly #12

Closed miroiu closed 3 months ago

miroiu commented 4 months ago

Describe the bug In the state machine example if you right-click to pan and release the mouse you will always see the context menu.

Expected behavior The context menu should be visible only if the mouse moves within the NodifyEditor.HandleRightClickAfterPanningThreshold pixels threshold.

Screenshots

right-click

Does it happen in WPF version? No.

BAndysc commented 3 months ago

Fixed in https://github.com/BAndysc/nodify-avalonia/commit/5c4ad9e34360eb5efdbc834ac468f6ec809dcc7f