From: Jonghyun Ho Date: Mon, 26 May 2014 04:40:28 +0000 (+0900) Subject: Avoid PanGesture circular buffer overflow X-Git-Tag: dali-2014-wk22-release~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fba0fc8323d39ecd14992e7ef6c9429cf017d82b;p=platform%2Fcore%2Fuifw%2Fdali-core.git Avoid PanGesture circular buffer overflow [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. --- diff --git a/dali/internal/update/gestures/scene-graph-pan-gesture.h b/dali/internal/update/gestures/scene-graph-pan-gesture.h index 25ea13b..b2bf1ae 100644 --- a/dali/internal/update/gestures/scene-graph-pan-gesture.h +++ b/dali/internal/update/gestures/scene-graph-pan-gesture.h @@ -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: