Avoid PanGesture circular buffer overflow
authorJonghyun Ho <jonghyun.ho@samsung.com>
Mon, 26 May 2014 04:40:28 +0000 (13:40 +0900)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 29 May 2014 14:06:09 +0000 (15:06 +0100)
[problem]     ScrollView sometimes moves in the wrong direction.
[cause]       Motion events received in excess of PanGesture PAN_GESTURE_HISTORY limit,
before the update-thread can process in the correct order.
[solution]    Increase PAN_GESTURE_HISTORY value.

dali/internal/update/gestures/scene-graph-pan-gesture.h

index 25ea13b..b2bf1ae 100644 (file)
@@ -167,7 +167,7 @@ public:
   typedef PanInfoHistory::const_iterator PanInfoHistoryConstIter;
 
 private:
-  static const unsigned int PAN_GESTURE_HISTORY = 4u;
+  static const unsigned int PAN_GESTURE_HISTORY = 20u;
 
 public: