mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-11 12:17:45 +02:00
[eric] canvas: bump wheel/pinch zoom responsiveness 25% (notch 6.4% -> 8%)
This commit is contained in:
@@ -23,9 +23,9 @@ const WHEEL_ZOOM_DELTA_CAP = 24;
|
||||
const WHEEL_STREAM_GAP_MS = 150;
|
||||
const MOUSE_NOTCH_MIN_DELTA = 40;
|
||||
|
||||
// Maps the 1 to 100 user setting to an internal multiplier (50 default = 0.004).
|
||||
// Maps the 1 to 100 user setting to an internal multiplier (50 default = 0.005; a mouse notch = ~8% zoom step).
|
||||
function sensitivityToMultiplier(setting: number): number {
|
||||
return 0.00008 * setting;
|
||||
return 0.0001 * setting;
|
||||
}
|
||||
|
||||
interface CanvasState {
|
||||
|
||||
Reference in New Issue
Block a user