From af1fca35bb15b8010cd3a12bbafe71b55d9ecf57 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 25 Apr 2025 09:36:50 +0300 Subject: Implement an Overview --- src/input/spatial_movement_grab.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/input/spatial_movement_grab.rs') diff --git a/src/input/spatial_movement_grab.rs b/src/input/spatial_movement_grab.rs index 6eec7b0a..e536866c 100644 --- a/src/input/spatial_movement_grab.rs +++ b/src/input/spatial_movement_grab.rs @@ -33,13 +33,20 @@ impl SpatialMovementGrab { start_data: PointerGrabStartData, output: Output, workspace_id: WorkspaceId, + is_view_offset: bool, ) -> Self { + let gesture = if is_view_offset { + GestureState::ViewOffset + } else { + GestureState::Recognizing + }; + Self { last_location: start_data.location, start_data, output, workspace_id, - gesture: GestureState::Recognizing, + gesture, } } -- cgit