Skip to content

Commit

Permalink
Enabled mouse interaction for drawables
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Nov 9, 2023
1 parent 0503fc0 commit e1a6879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Objects/ScalarObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class DrawableCurve final : public DrawableTemplate
, object(reinterpret_cast<t_fake_curve*>(obj))
, globalMouseListener(cnv)
{
/* TODO: finish this and enable it!

globalMouseListener.globalMouseDown = [this, cnv](const MouseEvent& e){
auto localPos = e.getEventRelativeTo(this).getMouseDownPosition();
if (!getLocalBounds().contains(localPos) || !getValue<bool>(canvas->locked) || !canvas->isShowing())
Expand Down Expand Up @@ -222,7 +222,7 @@ class DrawableCurve final : public DrawableTemplate
glist->gl_editor->e_xwas = pos.x;
glist->gl_editor->e_ywas = pos.y;
}
}; */
};
}

void update() override
Expand Down

0 comments on commit e1a6879

Please sign in to comment.