feat: Resizing properly working without taking delta magnitude into account

This commit is contained in:
Gerard Gascón 2024-04-16 11:44:37 +02:00
parent ce692af862
commit 65af35e8d5
4 changed files with 49 additions and 28 deletions

View file

@ -41,7 +41,7 @@ namespace SatorImaging.AppWindowUtility {
if (_resizeDirection.x < 0)
_targetPosition.x -= delta.x;
if (_resizeDirection.y < 0)
if (_resizeDirection.y > 0)
_targetPosition.y -= delta.y;
}
}