Browse Source

Fix ScaleWidget

The issue was and still is that the ofMouseEventArgs::type is not set correctly in
openFrameworks.
master
Krisjanis Rijnieks 9 years ago
parent
commit
25555be25c
  1. 3
      src/Gui/Widgets/ScaleWidget.cpp

3
src/Gui/Widgets/ScaleWidget.cpp

@ -139,6 +139,9 @@ void ScaleWidget::onMouseDragged(ofMouseEventArgs & args){
GuiWidgetEvent e; GuiWidgetEvent e;
e.args = args; e.args = args;
// Make sure that the args type is Dragged
e.args.type = e.args.Dragged;
ofNotifyEvent(guiWidgetEvent, e, this); ofNotifyEvent(guiWidgetEvent, e, this);
} }
} }

Loading…
Cancel
Save