Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2469 from ulion/fix_slideshow_swipe_wrong_direction

[Fix] slideshow swipe wrong direction detection.
  • Loading branch information...
commit 9d5afbeeb50bc4d00e5c0c98be35bc1ded85e2ba 2 parents 44bf55c + a1df231
@Memphiz Memphiz 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.