Skip to content

Commit

Permalink
Merge pull request #53 from Vrixyz/movement_do_not_drag_before_first_…
Browse files Browse the repository at this point in the history
…moving_frame

Fix incorrect drag when pressing after a movement
  • Loading branch information
johanhelsing authored Jan 6, 2024
2 parents 756cd5f + c85bfbe commit 9951359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ fn camera_movement(
&& cam
.grab_buttons
.iter()
.any(|btn| mouse_buttons.pressed(*btn))
.any(|btn| mouse_buttons.pressed(*btn) && !mouse_buttons.just_pressed(*btn))
{
let proj_size = projection.area.size();

Expand Down

0 comments on commit 9951359

Please sign in to comment.