Skip to content

Commit

Permalink
Move below start_pos
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Oct 12, 2024
1 parent 41abce8 commit 08187a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/egui/src/input_state/touch_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ pub struct MultiTouchInfo {
/// Position of the pointer at the time the gesture started.
pub start_pos: Pos2,

/// Center position of the current gesture (average of all touch points).
pub center_pos: Pos2,

/// Number of touches (fingers) on the surface. Value is ≥ 2 since for a single touch no
/// [`MultiTouchInfo`] is created.
pub num_touches: usize,
Expand Down Expand Up @@ -60,9 +63,6 @@ pub struct MultiTouchInfo {
/// Note 2: Just increasing the physical pressure without actually moving the finger may not
/// necessarily lead to a change of this value.
pub force: f32,

/// Center position of the current gesture (average of all touch points).
pub center_pos: Pos2,
}

/// The current state (for a specific touch device) of touch events and gestures.
Expand Down

0 comments on commit 08187a1

Please sign in to comment.