Fixed flipped Y bug in UiApp and GestureApp.