This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
DPF
mirror of
https://github.com/DISTRHO/DPF
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Fix knob drag letting events pass through when diff is near zero
Signed-off-by: falkTX <falktx@falktx.com>
pull/421/head
falkTX
2 years ago
parent
82b7841a24
commit
3e85ddaea5
Signed by:
falkTX
<falktx@falktx.com>
GPG Key ID:
CDBAA37ABC74FBA0
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
dgl/src/EventHandlers.cpp
+ 1
- 1
dgl/src/EventHandlers.cpp
View File
@@ -441,7 +441,7 @@ struct KnobEventHandler::PrivateData {
}
if (d_isZero(movDiff))
return
fals
e;
return
tru
e;
const float divisor = (ev.mod & kModifierControl) ? accel * 10.f : accel;
valueTmp += (maximum - minimum) / divisor * movDiff;
Write
Preview
Loading…
Cancel
Save