mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-04-18 05:23:31 +00:00
mousewheel scroll step now settable
size of mousewheel scroll step now settable add _base_vals.mwscroll_step to data. added [mwscroll_step] to app.toml
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import tkinter as tk
|
||||
from tkinter import ttk, messagebox as msg
|
||||
from functools import partial
|
||||
from tkinter import ttk
|
||||
from math import log
|
||||
|
||||
from .data import _base_vals
|
||||
@@ -62,10 +61,14 @@ class GainLayer(ttk.LabelFrame):
|
||||
_base_vals.in_scale_button_1 = False
|
||||
|
||||
def _on_mousewheel(self, event):
|
||||
if event.delta > 0:
|
||||
self.gain.set(self.gain.get() + 3)
|
||||
else:
|
||||
self.gain.set(self.gain.get() - 3)
|
||||
self.gain.set(
|
||||
self.gain.get()
|
||||
+ (
|
||||
_base_vals.mwscroll_step
|
||||
if event.delta > 0
|
||||
else -_base_vals.mwscroll_step
|
||||
)
|
||||
)
|
||||
if self.gain.get() > 12:
|
||||
self.gain.set(12)
|
||||
elif self.gain.get() < -60:
|
||||
|
||||
Reference in New Issue
Block a user