mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 14:18:12 +08:00
Implement more scrolling features (#256)
* Use sideways scrolling * Add horizontal scroll with shift * Combine WheelCanvasTranslate messages * Add zooming to current mouse position * Fix formatting * Fix scroll direction * Rename some Constants
This commit is contained in:
committed by
Keavon Chambers
parent
3156b3af05
commit
246ca2c95b
@@ -1,10 +1,12 @@
|
||||
pub const PLUS_KEY_ZOOM_MULTIPLIER: f64 = 1.25;
|
||||
pub const MINUS_KEY_ZOOM_MULTIPLIER: f64 = 0.8;
|
||||
pub const PLUS_KEY_ZOOM_RATE: f64 = 1.25;
|
||||
pub const MINUS_KEY_ZOOM_RATE: f64 = 0.8;
|
||||
|
||||
pub const VIEWPORT_ZOOM_SCALE_MIN: f64 = 0.000_001;
|
||||
pub const VIEWPORT_ZOOM_SCALE_MAX: f64 = 1_000_000.;
|
||||
|
||||
pub const WHEEL_ZOOM_DIVISOR: f64 = 500.;
|
||||
pub const MOUSE_ZOOM_DIVISOR: f64 = 400.;
|
||||
pub const VIEWPORT_SCROLL_RATE: f64 = 0.6;
|
||||
|
||||
pub const WHEEL_ZOOM_RATE: f64 = 1. / 600.;
|
||||
pub const MOUSE_ZOOM_RATE: f64 = 1. / 400.;
|
||||
|
||||
pub const ROTATE_SNAP_INTERVAL: f64 = 15.;
|
||||
|
||||
Reference in New Issue
Block a user