MCPcopy Create free account
hub / github.com/christophhart/HISE / mouseUp

Method mouseUp

hi_scripting/scripting/scriptnode/ui/NodeComponent.cpp:205–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void 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
225void NodeComponent::Header::mouseDrag(const MouseEvent& e)
226{

Callers

nothing calls this directly

Calls 4

finishDragMethod · 0.80
getRootNetworkMethod · 0.80
addToSelectionMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected