core: be explicit about float rounding for mouse scroll multiplier

This commit is contained in:
Mitchell Hashimoto
2024-01-27 21:14:42 -08:00
parent 890fd11fc1
commit 5095c8f477
2 changed files with 19 additions and 17 deletions

View File

@@ -350,8 +350,13 @@ palette: Palette = .{},
/// requests otherwise, set this to `never`.
@"mouse-shift-capture": MouseShiftCapture = .false,
/// Multiplier for scrolling distance with the mouse wheel. Any value less than 0.01 or greater than
/// 10,000 will be clamped to the nearest valid value.
/// Multiplier for scrolling distance with the mouse wheel. Any value less
/// than 0.01 or greater than 10,000 will be clamped to the nearest valid
/// value.
///
/// A value of "1" (default) scrolls te default amount. A value of "2" scrolls
/// double the default amount. A value of "0.5" scrolls half the default amount.
/// Et cetera.
@"mouse-scroll-multiplier": f64 = 1.0,
/// The opacity level (opposite of transparency) of the background. A value of