Browse Source

Small changes

rsredsq 10 years ago
parent
commit
63b26c8097

+ 1 - 1
Source/ThirdParty/TurboBadger/tb_widgets.cpp

@@ -1442,7 +1442,7 @@ void TBWidget::InvokePointerMove(int x, int y, MODIFIER_KEYS modifierkeys, bool
 		// The move event was not handled, so handle panning of scrollable widgets.
 		// The move event was not handled, so handle panning of scrollable widgets.
 		HandlePanningOnMove(x, y);
 		HandlePanningOnMove(x, y);
     }
     }
-        ReleaseAllDownWidgets(this, x, y, touch);
+    ReleaseAllDownWidgets(this, x, y, touch);
 }
 }
 
 
 void TBWidget::HandlePanningOnMove(int x, int y)
 void TBWidget::HandlePanningOnMove(int x, int y)

+ 2 - 4
Source/ThirdParty/TurboBadger/tb_widgets.h

@@ -995,10 +995,6 @@ public:
 
 
     void ReleaseAllDownWidgets(TBWidget* widget, int x, int y, bool touch);
     void ReleaseAllDownWidgets(TBWidget* widget, int x, int y, bool touch);
 
 
-    bool needCapturing_;
-
-    bool captured_;
-
 private:
 private:
 	friend class TBWidgetListener;	///< It does iteration of m_listeners for us.
 	friend class TBWidgetListener;	///< It does iteration of m_listeners for us.
 	TBWidget *m_parent;				///< The parent of this widget
 	TBWidget *m_parent;				///< The parent of this widget
@@ -1021,6 +1017,8 @@ private:
 	TBScroller *m_scroller;
 	TBScroller *m_scroller;
 	TBLongClickTimer *m_long_click_timer;
 	TBLongClickTimer *m_long_click_timer;
     TBWidgetDelegate* m_delegate;
     TBWidgetDelegate* m_delegate;
+    bool needCapturing_; //if ours widget need capturing
+    bool captured_; //if ours widget is currently captured
 	union {
 	union {
 		struct {
 		struct {
 			uint16 is_group_root : 1;
 			uint16 is_group_root : 1;