Skip to content
Browse files

[TIMOB-10153] change action to up

  • Loading branch information...
1 parent d30f3fe commit 8353dd90e642082e5b407f21ec88d6d9fd266487 @krowley krowley committed
Showing with 2 additions and 12 deletions.
  1. +2 −12 android/titanium/src/java/org/appcelerator/titanium/view/TiUIView.java
View
14 android/titanium/src/java/org/appcelerator/titanium/view/TiUIView.java
@@ -1148,18 +1148,8 @@ public boolean onTouch(View view, MotionEvent event)
String motionEvent = motionEvents.get(event.getAction());
if (motionEvent != null) {
- if (event.getAction() == MotionEvent.ACTION_UP) {
- Rect r = new Rect(0, 0, view.getWidth(), view.getHeight());
- int actualAction = MotionEvent.ACTION_UP;
-
- String actualEvent = motionEvents.get(actualAction);
- if (proxy.hierarchyHasListener(actualEvent)) {
- proxy.fireEvent(actualEvent, dictFromEvent(event));
- }
- } else {
- if (proxy.hierarchyHasListener(motionEvent)) {
- proxy.fireEvent(motionEvent, dictFromEvent(event));
- }
+ if (proxy.hierarchyHasListener(motionEvent)) {
+ proxy.fireEvent(motionEvent, dictFromEvent(event));
}
}

0 comments on commit 8353dd9

Please sign in to comment.
Something went wrong with that request. Please try again.