Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[TIMOB-10153] change action to up

  • Loading branch information...
commit 8353dd90e642082e5b407f21ec88d6d9fd266487 1 parent d30f3fe
Karl Rowley authored August 02, 2012
14  android/titanium/src/java/org/appcelerator/titanium/view/TiUIView.java
@@ -1148,18 +1148,8 @@ public boolean onTouch(View view, MotionEvent event)
1148 1148
 
1149 1149
 				String motionEvent = motionEvents.get(event.getAction());
1150 1150
 				if (motionEvent != null) {
1151  
-					if (event.getAction() == MotionEvent.ACTION_UP) {
1152  
-						Rect r = new Rect(0, 0, view.getWidth(), view.getHeight());
1153  
-						int actualAction = MotionEvent.ACTION_UP;
1154  
-
1155  
-						String actualEvent = motionEvents.get(actualAction);
1156  
-						if (proxy.hierarchyHasListener(actualEvent)) {
1157  
-							proxy.fireEvent(actualEvent, dictFromEvent(event));
1158  
-						}
1159  
-					} else {
1160  
-						if (proxy.hierarchyHasListener(motionEvent)) {
1161  
-							proxy.fireEvent(motionEvent, dictFromEvent(event));
1162  
-						}
  1151
+					if (proxy.hierarchyHasListener(motionEvent)) {
  1152
+						proxy.fireEvent(motionEvent, dictFromEvent(event));
1163 1153
 					}
1164 1154
 				}
1165 1155
 

0 notes on commit 8353dd9

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