Просмотр исходного кода

Merge pull request #994 from ablake/next

Bugfix
Sean Paul Taylor 12 лет назад
Родитель
Сommit
2da68f72ae
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      gameplay/src/Form.cpp

+ 1 - 1
gameplay/src/Form.cpp

@@ -603,7 +603,7 @@ void Form::updateInternal(float elapsedTime)
 
 
 static bool shouldPropagateTouchEvent(Control::State state, Touch::TouchEvent evt, const Rectangle& bounds, int x, int y)
 static bool shouldPropagateTouchEvent(Control::State state, Touch::TouchEvent evt, const Rectangle& bounds, int x, int y)
 {
 {
-    return (state == Control::FOCUS ||
+    return (state != Control::NORMAL ||
             (evt == Touch::TOUCH_PRESS &&
             (evt == Touch::TOUCH_PRESS &&
              x >= bounds.x &&
              x >= bounds.x &&
              x <= bounds.x + bounds.width &&
              x <= bounds.x + bounds.width &&