mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 19:48:11 +08:00
Polish and fix small bugs with tilt and zoom navigation
This commit is contained in:
@@ -82,7 +82,7 @@ impl AutoPanning {
|
||||
|
||||
let time_delta = input.frame_time.frame_duration()?.as_secs_f64();
|
||||
let delta = (shift_percent * DRAG_BEYOND_VIEWPORT_SPEED_FACTOR * viewport_size * time_delta).round();
|
||||
responses.add(NavigationMessage::TranslateCanvas { delta });
|
||||
responses.add(NavigationMessage::CanvasPan { delta });
|
||||
Some(delta)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user