Skip to content

Commit

Permalink
chore: fix test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Dec 10, 2023
1 parent 55373b3 commit 95a7d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src_testbed/camera2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl OrbitCameraPlugin {
mut query: Query<(&mut OrbitCamera, &mut Transform, &mut Camera)>,
) {
let mut delta = Vec2::ZERO;
for event in mouse_motion_events.iter() {
for event in mouse_motion_events.read() {
delta += event.delta;
}
for (mut camera, _, _) in query.iter_mut() {
Expand All @@ -71,7 +71,7 @@ impl OrbitCameraPlugin {
mut query: Query<&mut OrbitCamera, With<Camera>>,
) {
let mut total = 0.0;
for event in mouse_wheel_events.iter() {
for event in mouse_wheel_events.read() {
total -= event.y
* match event.unit {
Line => 1.0,
Expand Down

0 comments on commit 95a7d9e

Please sign in to comment.