(PanGesture) Ensure we do not send invalid velocities 95/24095/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 30 Jun 2014 08:05:39 +0000 (17:05 +0900)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 13:19:39 +0000 (14:19 +0100)
commit01f852ffda7a61ca68fa6122a1c37fe2c279dcca
tree4538fd4a65cb4d395e2950744651e70e5bd399cd
parent8411ad6373e07c48964c6a05527a8cbad7870be8
(PanGesture) Ensure we do not send invalid velocities

[problem]     Sometimes, the velocity is an infinite number.
[cause]       In these cases, no time has passed between the current and the last velocity so time
              difference is zero.
[solution]    Ensure we do not divide by 0, just send a ZERO vector2 if this is the case.

Change-Id: I80c03000576a324febe0e19e257a4f095079547b
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
automated-tests/src/dali/tct-dali-core.h
automated-tests/src/dali/utc-Dali-PanGestureDetector.cpp
dali/internal/event/events/pan-gesture-processor.cpp