Browse Source

Don't bubble pointer down on resource editor widgets

Josh Engebretson 10 years ago
parent
commit
9ac8af5eb7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/AtomicEditor/Editors/ResourceEditor.cpp

+ 4 - 0
Source/AtomicEditor/Editors/ResourceEditor.cpp

@@ -61,6 +61,10 @@ public:
 
 
     bool OnEvent(const TBWidgetEvent &ev)
     bool OnEvent(const TBWidgetEvent &ev)
     {
     {
+        // Don't process pointer down, we only respond to click events
+        if (ev.type == EVENT_TYPE_POINTER_DOWN)
+            return true;
+
         if (ev.type == EVENT_TYPE_CLICK)
         if (ev.type == EVENT_TYPE_CLICK)
         {
         {
             if (ev.target->GetID() == TBIDC("unsaved_modifications_dialog"))
             if (ev.target->GetID() == TBIDC("unsaved_modifications_dialog"))