commit 719be6fc05a1bf7c2d9aa59ab5746154637fa15a
parent e43f69901ef4939ee974805d069b3c4be95d333a
Author: Christopher A. Oliver <[email protected]>
Date: Sun, 27 Dec 2015 14:29:35 -0500
Make the mouse wheel sense of free mode dt agree with the other
wheel actions.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/UI/EnvelopeFreeEdit.cpp b/src/UI/EnvelopeFreeEdit.cpp
@@ -260,7 +260,7 @@ int EnvelopeFreeEdit::handle(int event)
oscWrite(to_s("Penvval")+to_s(lastpoint), "c", ny);
oscWrite("Penvval","");
} else if (lastpoint > 0) {
- int newdt = Penvdt[lastpoint] + delta;
+ int newdt = Penvdt[lastpoint] - delta;
newdt = newdt < 0 ? 0 : newdt > 127 ? 127 : newdt;
Penvdt[lastpoint] = newdt;
oscWrite(to_s("Penvdt")+to_s(lastpoint), "c", newdt);