scripting: Port gesture handlers to native gesture apis
If a SwipeGesture or a PinchGesture is cancelled, the associated QAction is going to be triggered. It is against the expectations of the gesture handlers.
In order to address that, this ports the gesture handlers to the native gesture apis, which expose whether the gesture has been started or cancelled better.
(cherry picked from commit 059f66af)