Fix handleGestureChange