Browse Source

Make right-click reset Octave parameter.

tags/v1.0.1
Andrew Belt 4 years ago
parent
commit
270a85790b
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/Octave.cpp

+ 5
- 3
src/Octave.cpp View File

@@ -105,9 +105,11 @@ struct OctaveButton : OpaqueWidget {
}

void onDragEnter(const event::DragEnter &e) override {
OctaveButton *w = dynamic_cast<OctaveButton*>(e.origin);
if (w) {
module->octave = octave;
if (e.button == GLFW_MOUSE_BUTTON_LEFT) {
OctaveButton *w = dynamic_cast<OctaveButton*>(e.origin);
if (w) {
module->octave = octave;
}
}
}
};


Loading…
Cancel
Save