Skip to content

Commit

Permalink
fix(area_selector/view_port): don't multiply offset by scale factor
Browse files Browse the repository at this point in the history
It was incorrect
  • Loading branch information
SeaDve committed Feb 12, 2024
1 parent 57700d0 commit 02c9157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/area_selector/view_port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ impl ViewPort {
&& selection.end_x == selection.start_x
&& selection.end_y == selection.start_y
{
let offset = 20.0 * self.scale_factor() as f32;
let offset = 20.0;
selection.start_x -= offset;
selection.start_y -= offset;
selection.end_x += offset;
Expand Down

0 comments on commit 02c9157

Please sign in to comment.