generated from dave/wails-template
Shift = scroll smaller
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
|
||||
function handleWheel(event: WheelEvent) {
|
||||
event.preventDefault();
|
||||
const delta = event.deltaY > 0 ? -4 : 4;
|
||||
const increment = event.shiftKey ? 1 : 4;
|
||||
const delta = event.deltaY > 0 ? -increment : increment;
|
||||
const newBrightness = Math.max(0, Math.min(100, brightness + delta));
|
||||
if (newBrightness !== brightness) {
|
||||
brightness = newBrightness;
|
||||
|
Reference in New Issue
Block a user