Skip to content

Commit

Permalink
- fix #606
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Nov 20, 2024
1 parent 376a199 commit 696be30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hi_scripting/scripting/scriptnode/ui/NodeComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand All @@ -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);
Expand Down

0 comments on commit 696be30

Please sign in to comment.