Permalink
Browse files

[droid] fix unfocusing of focused item after a pan gesture (scrolling)

  • Loading branch information...
1 parent 59092d5 commit 4709d58ab48e210ae166a39c05240df679943a07 @Montellese Montellese committed Aug 21, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 xbmc/android/activity/AndroidTouch.cpp
@@ -117,9 +117,8 @@ bool CAndroidTouch::OnTouchGesturePanEnd(float x, float y, float offsetX, float
{
XBMC_TouchGesture(ACTION_GESTURE_END, velocityX, velocityY, x, y);
- // Send a mouse motion event pointing off the screen
- // to deselect the selected gui item
- XBMC_Touch(XBMC_MOUSEMOTION, 0, -1, -1);
+ // unfocus the focused GUI item
+ g_windowManager.SendMessage(GUI_MSG_UNFOCUS_ALL, 0, 0, 0, 0);
return true;
}

0 comments on commit 4709d58

Please sign in to comment.