Browse Source

Merge pull request #483 from ablake/next

Adding a form to the TextTest
Sean Paul Taylor 13 years ago
parent
commit
50d7188a5d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      gameplay/src/Container.cpp

+ 3 - 0
gameplay/src/Container.cpp

@@ -365,6 +365,9 @@ bool Container::isScrollBarsAutoHide() const
 
 
 bool Container::isScrolling() const
 bool Container::isScrolling() const
 {
 {
+    if (_parent && _parent->isScrolling())
+        return true;
+
     return (_scrolling &&
     return (_scrolling &&
             (abs(_scrollingLastX - _scrollingFirstX) > SCROLL_THRESHOLD ||
             (abs(_scrollingLastX - _scrollingFirstX) > SCROLL_THRESHOLD ||
              abs(_scrollingLastY - _scrollingFirstY) > SCROLL_THRESHOLD));
              abs(_scrollingLastY - _scrollingFirstY) > SCROLL_THRESHOLD));