Hello,
Is there a way I can drag a button with touch?
I see Buttons have “addTouchEventListener” event and upon implementing a touch event listener I get the button reference and a TouchEventType as a parameter. One of the TouchEventType is “TouchEventType::TOUCH_EVENT_MOVED”. So can it be used to move the button with touch. But I don,t seem to get the current touch location. Is there a way I can get the current touch location. Or is there a better way to drag a button. The normal touch listeners are not working on buttons i.e. onTouchBegan. onTouchMoved etc.
Any help is appreciated
Shahzaib