switched from strings to enum for gestures

also sanitized newPosition[XY] a bit
Merge remote-tracking branch 'origin/unstable'