Change the default pan algorithm
authordaemyung jang <dm86.jang@samsung.com>
Thu, 5 Jun 2014 05:38:12 +0000 (14:38 +0900)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 10 Jun 2014 15:00:48 +0000 (16:00 +0100)
[problem] Jitter problem is happend.
[cause] Cause by the prediction algorithm.
[solution] Use the average algorithm.

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

index 4a476ba..180ff46 100644 (file)
@@ -36,7 +36,7 @@ const int MAX_GESTURE_AGE = 50; ///< maximum age of a gesture before disallowing
 const float DEFAULT_PREDICTION_INTERPOLATION = 0.0f; ///< how much to interpolate pan position and displacement from last vsync time
 } // unnamed namespace
 
-const PanGesture::PredictionMode PanGesture::DEFAULT_PREDICTION_MODE = PanGesture::PREDICTION_2;
+const PanGesture::PredictionMode PanGesture::DEFAULT_PREDICTION_MODE = PanGesture::AVERAGE;
 const int PanGesture::NUM_PREDICTION_MODES = PanGesture::PREDICTION_2 + 1;
 
 PanGesture* PanGesture::New()