Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[TIMOB-10153] change action to up

  • Loading branch information...
commit 8353dd90e642082e5b407f21ec88d6d9fd266487 1 parent d30f3fe
@krowley krowley authored
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));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.