Bug 859951 - Split MotionEvent's action into mask and index in Java rather than in JNI code. r=wesj

This commit is contained in:
Kartikaya Gupta
2013-04-17 17:39:11 -04:00
parent 42ac3dde0c
commit 9551d0aa6b
4 changed files with 6 additions and 10 deletions

View File

@@ -697,8 +697,7 @@ AndroidGeckoEvent::MakeTouchEvent(nsIWidget* widget)
int startIndex = 0;
int endIndex = Count();
int action = Action() & AndroidMotionEvent::ACTION_MASK;
switch (action) {
switch (Action()) {
case AndroidMotionEvent::ACTION_DOWN:
case AndroidMotionEvent::ACTION_POINTER_DOWN: {
type = NS_TOUCH_START;