Skip to content

Commit c034022

Browse files
committed
Update ScreenCutAdorner.cs
1 parent b972dae commit c034022

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/WPFDevelopers.Shared/Controls/ScreenCut/ScreenCutAdorner.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ private Thumb GetResizeThumb(Cursor cur, HorizontalAlignment hor, VerticalAlignm
157157

158158
double canvasWidth = canvas.ActualWidth;
159159
double canvasHeight = canvas.ActualHeight;
160+
bool isRightBottomCorner = _isRatioScale
161+
&&
162+
thumb.HorizontalAlignment == HorizontalAlignment.Right &&
163+
thumb.VerticalAlignment == VerticalAlignment.Bottom;
160164

161165
switch (thumb.VerticalAlignment)
162166
{
@@ -189,6 +193,11 @@ private Thumb GetResizeThumb(Cursor cur, HorizontalAlignment hor, VerticalAlignm
189193

190194
if (_isRatioScale)
191195
ScaleWidth(thumb, element, newHeight);
196+
if (isRightBottomCorner)
197+
{
198+
e.Handled = true;
199+
return;
200+
}
192201
}
193202
break;
194203
}

0 commit comments

Comments
 (0)