[Interest] onGestureStarted we can grab(), what about release?

Nuno Santos nunosantos at imaginando.pt
Thu Feb 5 13:21:10 CET 2015


Hi,

I’m being faced with a situation where a custom knob is layed out inside nested flickables. 

My custom knob touch handling is made with a MultiPointTouchArea to allow multiple knob interactions.

To avoid the gesture being grabbed by the flickables where is layed into, I call gesture.grab() onGestureStarted.

The problem is that, when the touch terminates, it isn’t released unless I tap in another element outside. 

If I don’t do that, the gesture will keep assigned to that particular knob and this is an awkward and not welcome behaviour.

I couldn’t find a gesture release on documentation. Maybe i’m missing something here.

Does anyone has a clue on how to avoid this problem?

Thanks in advance.

Regards,

Nuno Santos


More information about the Interest mailing list