mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 09:28:11 +08:00
Improve scrollbar behavior (#351)
* Change scrollbar behavior * Leave space at the end of the scrollbar * Change mid to center * Use shorter array initialization * Add space around scrollbar * Fix scrollbar spacing * Smooth end of scrollbars * Add page up and down * Page up and down on click in scrollbar track * Add shift pageup to translate horizontally
This commit is contained in:
committed by
Keavon Chambers
parent
f63b0abfde
commit
6deecad9c0
@@ -19,6 +19,11 @@ pub const LINE_ROTATE_SNAP_ANGLE: f64 = 15.;
|
||||
// SELECT TOOL
|
||||
pub const SELECTION_TOLERANCE: f64 = 1.0;
|
||||
|
||||
// SCROLLBARS
|
||||
pub const SCROLLBAR_SPACING: f64 = 0.1;
|
||||
pub const ASYMPTOTIC_EFFECT: f64 = 0.5;
|
||||
pub const SCALE_EFFECT: f64 = 0.5;
|
||||
|
||||
pub const DEFAULT_DOCUMENT_NAME: &str = "Untitled Document";
|
||||
pub const FILE_SAVE_SUFFIX: &str = ".graphite";
|
||||
pub const FILE_EXPORT_SUFFIX: &str = ".svg";
|
||||
|
||||
Reference in New Issue
Block a user