OSDN Git Service

Measure absolute value of pointer motion distance
authortingna_sung <tingna_sung@htc.com>
Tue, 21 Oct 2014 09:09:57 +0000 (17:09 +0800)
committertingna_sung <tingna_sung@htc.com>
Wed, 26 Nov 2014 03:28:39 +0000 (11:28 +0800)
commitf2ad1a442bd85bd6ae0c5fd47701ec7dfa91c1f9
tree7318ce0eec7fa6b893509638fef88068cb1ae8b4
parentaf5bd75b3d65fc710784f59d1c22c164312e2691
Measure absolute value of pointer motion distance

If pointer is moving to the negative axis direction, pointer movement
distance will always less than pre-defined mMotionSlop, thus
TAP_OUTSIDE_STACK will have chance to be sent, will cause unnecessary
focus stack switch.

Change-Id: Ia4c066bebce250257c7361ef976907a0ca2c6461
Signed-off-by: tingna_sung <tingna_sung@htc.com>
services/core/java/com/android/server/wm/StackTapPointerEventListener.java