Skip to content

Commit

Permalink
Adjust resize region for DPI
Browse files Browse the repository at this point in the history
  • Loading branch information
dremin committed Nov 9, 2024
1 parent 334b067 commit 3be4280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RetroBar/Taskbar.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ private bool IsMouseInResizeArea()
{
if (IsLocked || Orientation == Orientation.Vertical) return false;

int resizeRegionSize = (int)(_unlockedMargin > 0 ? _unlockedMargin : SystemParameters.MinimumVerticalDragDistance * Settings.Instance.TaskbarScale);
int resizeRegionSize = (int)((_unlockedMargin > 0 ? _unlockedMargin : SystemParameters.MinimumVerticalDragDistance * Settings.Instance.TaskbarScale) * DpiScale);
int mouseY = System.Windows.Forms.Cursor.Position.Y;

if (AppBarEdge == AppBarEdge.Bottom && mouseY <= (int)(Top * DpiScale) + resizeRegionSize)
Expand Down

0 comments on commit 3be4280

Please sign in to comment.