Solved
How can we make a Box widget able to detect drag event and differentiate it from single click?
I create a widget Box, with intention:
- For single click , do action 1
- For dragging, prevent doing action 1
This mean I need the Box container need to :
- Detect drag event. I know how to detect single click but not drag.
- Differentiate between drag event and single click.
I tried to tick mixins option for both 'Draggable' and 'ClickListener' then setup in class definition
virtual void handleDragEvent(const DragEvent& event) override {
// break point here
}
But when I drag the box, it never hit the breakpoint inside handleDragEvent().
Did I miss anything?
