Skip to content
This repository
Browse code

[Fix] slideshow swipe wrong direction detection.

  • Loading branch information...
commit a1df231139bd429aba186c54a1268be5f7256abc 1 parent c28ead9
ulion 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 a1df231

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