Skip to content

Commit 14c3eb0

Browse files
Update crates/bevy_input/src/touch.rs
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
1 parent 73575f1 commit 14c3eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_input/src/touch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl Touches {
202202
self.just_cancelled.values()
203203
}
204204

205-
/// Retrieves the position of the first currently pressed touch
205+
/// Retrieves the position of the first currently pressed touch, if any
206206
pub fn first_pressed_position(&self) -> Option<Vec2> {
207207
self.pressed.values().next().map(|t| t.position)
208208
}

0 commit comments

Comments
 (0)