From 43aa5fc9d763ce4e98bfbc53fcb86a5c4d8de8bd Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Wed, 11 Jan 2023 14:54:29 -0800 Subject: [PATCH] fix bottom coord calculation for snapping to right --- snap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap.go b/snap.go index 22ef522..5626d4f 100644 --- a/snap.go +++ b/snap.go @@ -31,7 +31,7 @@ func toRight(d w32.RECT, mul, div int32) w32.RECT { Left: d.Left + d.Width() - d.Width()*mul/div, Top: d.Top, Right: d.Left + d.Width(), - Bottom: d.Height()} + Bottom: d.Top + d.Height()} } func toTop(d w32.RECT, mul, div int32) w32.RECT {