Skip to content

Commit

Permalink
fix bottom coord calculation for snapping to right
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetb committed Jan 11, 2023
1 parent 2ca0fb8 commit 43aa5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 43aa5fc

Please sign in to comment.