Browse Source

Revert "Restore back the coordinates after converting it to the captured_widget local coordinates"

This reverts commit 9df0c2eace01246cf6cfc03208ec5521552b604e.
Josh Engebretson 10 years ago
parent
commit
ac265d4ebd
1 changed files with 0 additions and 4 deletions
  1. 0 4
      Source/ThirdParty/TurboBadger/tb_widgets.cpp

+ 0 - 4
Source/ThirdParty/TurboBadger/tb_widgets.cpp

@@ -1353,8 +1353,6 @@ void TBWidget::InvokePointerDown(int x, int y, int click_count, MODIFIER_KEYS mo
 
 void TBWidget::InvokePointerUp(int x, int y, MODIFIER_KEYS modifierkeys, bool touch, int touchId)
 {
-    int ox = x;
-    int oy = y;
     //First check for the captured widget
     if (captured_widget && captured_widget->touchId_ == touchId)
     {
@@ -1368,8 +1366,6 @@ void TBWidget::InvokePointerUp(int x, int y, MODIFIER_KEYS modifierkeys, bool to
         }
         captured_widget->ReleaseCapture();
     }
-    x = ox;
-    y = oy;
     TBWidget* down_widget = GetWidgetAt(x, y, true);
 	//then if we have any down widgets, then make sure that it's not captured_widget otherwise events will be sent twice
     if (down_widget && down_widget->touchId_ == touchId && captured_widget != down_widget)