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

Fixed menu item staying pressed and performing its action later if cursor was moved away from it with left button pressed.

Lasse Öörni 12 лет назад
Родитель
Сommit
7402da1ebd
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      Engine/UI/Menu.cpp

+ 2 - 0
Engine/UI/Menu.cpp

@@ -71,6 +71,8 @@ void Menu::RegisterObject(Context* context)
 
 void Menu::Update(float timeStep)
 {
+    Button::Update(timeStep);
+    
     if (popup_ && showPopup_)
     {
         const Vector<SharedPtr<UIElement> >& children = popup_->GetChildren();