From 496428915922881fd2067eadfc8f94c3df97bb93 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Tue, 17 Sep 2024 17:14:51 +0800 Subject: [PATCH] feat: Resize activation now requires left mouse button press. --- src/Ursa/Controls/Resizers/WindowResizerThumb.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Ursa/Controls/Resizers/WindowResizerThumb.cs b/src/Ursa/Controls/Resizers/WindowResizerThumb.cs index 480da62..69a2189 100644 --- a/src/Ursa/Controls/Resizers/WindowResizerThumb.cs +++ b/src/Ursa/Controls/Resizers/WindowResizerThumb.cs @@ -28,6 +28,8 @@ public class WindowResizerThumb: Thumb { base.OnPointerPressed(e); 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 { ResizeDirection.Top => WindowEdge.North,