Skip to content

fix(viz): touch gestures don't work correctly in 3D scene

Description

Fix touch management in negato 2D/3D.

  • Remove GestureRecognizer, EventFilter, GestureFilter as we rely on default Qt one for Pinch and Pan.
  • Remove Tap and long Tap, as they are no more used, but it should be easy to add them back, if needed.
  • Use synthesized mouse event from Qt gesture, and synthesize the one missing (in SNegato2DCamera)
  • Use float version of device pixel ratio to manage correctly fractional scaling (like 1.5 * full HD)

Closes #1111 (closed)

How to test it?

  • Use a touch screen with SightViewer and try to pinch, pan, use your finger(s)
Edited by Didier WECKMANN

Merge request reports