Skip to content
This repository
Browse code

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 authored March 19, 2013

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. 4  xbmc/pictures/GUIWindowSlideShow.cpp
4  xbmc/pictures/GUIWindowSlideShow.cpp
@@ -645,12 +645,10 @@ EVENT_RESULT CGUIWindowSlideShow::OnMouseEvent(const CPoint &point, const CMouse
645 645
     if (m_iZoomFactor == 1 || !m_Image[m_iCurrentPic].m_bCanMoveHorizontally)
646 646
     {
647 647
       // on zoomlevel 1 just detect swipe left and right
648  
-      if (point.x < m_firstGesturePoint.x)
  648
+      if (event.m_id == ACTION_GESTURE_SWIPE_LEFT)
649 649
         OnAction(CAction(ACTION_NEXT_PICTURE));
650 650
       else
651 651
         OnAction(CAction(ACTION_PREV_PICTURE));
652  
-      
653  
-      m_firstGesturePoint.x = 0;
654 652
     }
655 653
   }
656 654
   else if (event.m_id == ACTION_GESTURE_END)

0 notes on commit 9d5afbe

Please sign in to comment.
Something went wrong with that request. Please try again.