| 203 | } |
| 204 | |
| 205 | void NodeComponent::Header::mouseUp(const MouseEvent& e) |
| 206 | { |
| 207 | CHECK_MIDDLE_MOUSE_UP(e); |
| 208 | |
| 209 | if (e.mods.isRightButtonDown()) |
| 210 | { |
| 211 | return; |
| 212 | } |
| 213 | |
| 214 | auto graph = findParentComponentOfClass<DspNetworkGraph>(); |
| 215 | |
| 216 | if (isDragging) |
| 217 | graph->finishDrag(); |
| 218 | else |
| 219 | { |
| 220 | parent.node->getRootNetwork()->addToSelection(parent.node.get(), e.mods); |
| 221 | } |
| 222 | |
| 223 | } |
| 224 | |
| 225 | void NodeComponent::Header::mouseDrag(const MouseEvent& e) |
| 226 | { |
nothing calls this directly
no test coverage detected