Browse Source

Use float literals in `RackScrollWidget`.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
7019b46c1e
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/app/RackScrollWidget.cpp

+ 4
- 4
src/app/RackScrollWidget.cpp View File

@@ -99,13 +99,13 @@ void RackScrollWidget::onHoverKey(const event::HoverKey& e) {
return;

// Scroll with arrow keys
float arrowSpeed = 30.0;
float arrowSpeed = 32.f;
if ((e.mods & RACK_MOD_MASK) == (RACK_MOD_CTRL | GLFW_MOD_SHIFT))
arrowSpeed /= 16.0;
arrowSpeed /= 16.f;
if ((e.mods & RACK_MOD_MASK) == RACK_MOD_CTRL)
arrowSpeed *= 4.0;
arrowSpeed *= 4.f;
if ((e.mods & RACK_MOD_MASK) == GLFW_MOD_SHIFT)
arrowSpeed /= 4.0;
arrowSpeed /= 4.f;

if (e.action == RACK_HELD) {
if (e.key == GLFW_KEY_LEFT) {


Loading…
Cancel
Save