Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Fix] slideshow swipe wrong direction detection.

  • Loading branch information...
commit a1df231139bd429aba186c54a1268be5f7256abc 1 parent c28ead9
@ulion ulion authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 xbmc/pictures/GUIWindowSlideShow.cpp
View
4 xbmc/pictures/GUIWindowSlideShow.cpp
@@ -645,12 +645,10 @@ EVENT_RESULT CGUIWindowSlideShow::OnMouseEvent(const CPoint &point, const CMouse
if (m_iZoomFactor == 1 || !m_Image[m_iCurrentPic].m_bCanMoveHorizontally)
{
// on zoomlevel 1 just detect swipe left and right
- if (point.x < m_firstGesturePoint.x)
+ if (event.m_id == ACTION_GESTURE_SWIPE_LEFT)
OnAction(CAction(ACTION_NEXT_PICTURE));
else
OnAction(CAction(ACTION_PREV_PICTURE));
-
- m_firstGesturePoint.x = 0;
}
}
else if (event.m_id == ACTION_GESTURE_END)
Please sign in to comment.
Something went wrong with that request. Please try again.