feat: Resize activation now requires left mouse button press.

This commit is contained in:
rabbitism
2024-09-17 17:14:51 +08:00
parent cd39edb5f1
commit 4964289159

View File

@@ -28,6 +28,8 @@ public class WindowResizerThumb: Thumb
{ {
base.OnPointerPressed(e); base.OnPointerPressed(e);
if (_window is null || !_window.CanResize) return; if (_window is null || !_window.CanResize) return;
// TODO: Support touch screen resizing but we don't know what it should behave.
if (!e.GetCurrentPoint(this).Properties.IsLeftButtonPressed) return;
var windowEdge = ResizeDirection switch var windowEdge = ResizeDirection switch
{ {
ResizeDirection.Top => WindowEdge.North, ResizeDirection.Top => WindowEdge.North,