diff --git a/hi_scripting/scripting/scriptnode/ui/NodeComponent.cpp b/hi_scripting/scripting/scriptnode/ui/NodeComponent.cpp index df7f5960a8..12612d1edb 100644 --- a/hi_scripting/scripting/scriptnode/ui/NodeComponent.cpp +++ b/hi_scripting/scripting/scriptnode/ui/NodeComponent.cpp @@ -205,6 +205,7 @@ void NodeComponent::Header::mouseDown(const MouseEvent& e) void NodeComponent::Header::mouseUp(const MouseEvent& e) { CHECK_MIDDLE_MOUSE_UP(e); + ZoomableViewport::checkDragScroll(e, true); if (e.mods.isRightButtonDown()) { @@ -226,6 +227,8 @@ void NodeComponent::Header::mouseDrag(const MouseEvent& e) { CHECK_MIDDLE_MOUSE_DRAG(e); + ZoomableViewport::checkDragScroll(e, false); + if (isDragging) { d.dragComponent(&parent, e, nullptr);