fix(viz): fix shape extruder not working with touchscreen
requested to merge 1077-fix-viz-finishing-shape-extrusion-with-double-tap-on-touchscreen-doesn-t-work into dev
Description
In SShapeExtruder::buttonDoublePressEvent
, there was a check that only extruded the image if the double click was close enough to an existing point of the lasso. This check seems to always succeed when using the mouse and to always fail when using the touchscreen. I removed this check to make the shape extruder work with touchscreen, as the purpose of this check is pretty obscure anyway.
Closes #1077 (closed)
How to test it?
- Launch SightViewer
- Start an extrusion
- Double-clicking to finish the extrusion still works
- Launch SightViewer with a touchscreen
- Start an extrusion
- Double-tapping to finish the extrusion now works