feat: Resize activation now requires left mouse button press.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user