| 197 | } |
| 198 | |
| 199 | void RackWidget::onButton(const ButtonEvent& e) { |
| 200 | OpaqueWidget::onButton(e); |
| 201 | if (e.isConsumed()) |
| 202 | return; |
| 203 | |
| 204 | if (e.button == GLFW_MOUSE_BUTTON_RIGHT) { |
| 205 | if (e.action == GLFW_PRESS) { |
| 206 | APP->scene->browser->show(); |
| 207 | } |
| 208 | e.consume(this); |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | void RackWidget::onDragStart(const DragStartEvent& e) { |
| 213 | if (e.button == GLFW_MOUSE_BUTTON_LEFT) { |
nothing calls this directly
no test coverage detected