diff options
author | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
commit | a408bac29378072fbf36864164149458c978cfcc (patch) | |
tree | 67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/llui/llscrollcontainer.cpp | |
parent | Second Life viewer sources 1.17.0.12 (diff) | |
download | meta-impy-a408bac29378072fbf36864164149458c978cfcc.zip meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2 meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz |
Second Life viewer sources 1.17.1.0
Diffstat (limited to 'linden/indra/llui/llscrollcontainer.cpp')
-rw-r--r-- | linden/indra/llui/llscrollcontainer.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/linden/indra/llui/llscrollcontainer.cpp b/linden/indra/llui/llscrollcontainer.cpp index cf43ee1..be41aa8 100644 --- a/linden/indra/llui/llscrollcontainer.cpp +++ b/linden/indra/llui/llscrollcontainer.cpp | |||
@@ -292,7 +292,26 @@ BOOL LLScrollableContainerView::handleScrollWheel( S32 x, S32 y, S32 clicks ) | |||
292 | // Opaque | 292 | // Opaque |
293 | return TRUE; | 293 | return TRUE; |
294 | } | 294 | } |
295 | BOOL LLScrollableContainerView::needsToScroll(S32 x, S32 y, LLScrollableContainerView::SCROLL_ORIENTATION axis) | ||
296 | { | ||
297 | if(mScrollbar[axis]->getVisible()) | ||
298 | { | ||
299 | LLRect inner_rect_local( 0, mInnerRect.getHeight(), mInnerRect.getWidth(), 0 ); | ||
300 | const S32 AUTOSCROLL_SIZE = 10; | ||
301 | if(mScrollbar[axis]->getVisible()) | ||
302 | { | ||
303 | inner_rect_local.mRight -= SCROLLBAR_SIZE; | ||
304 | inner_rect_local.mTop += AUTOSCROLL_SIZE; | ||
305 | inner_rect_local.mBottom = inner_rect_local.mTop - AUTOSCROLL_SIZE; | ||
306 | } | ||
307 | if( inner_rect_local.pointInRect( x, y ) && (mScrollbar[axis]->getDocPos() > 0) ) | ||
308 | { | ||
309 | return TRUE; | ||
310 | } | ||
295 | 311 | ||
312 | } | ||
313 | return FALSE; | ||
314 | } | ||
296 | BOOL LLScrollableContainerView::handleDragAndDrop(S32 x, S32 y, MASK mask, | 315 | BOOL LLScrollableContainerView::handleDragAndDrop(S32 x, S32 y, MASK mask, |
297 | BOOL drop, | 316 | BOOL drop, |
298 | EDragAndDropType cargo_type, | 317 | EDragAndDropType cargo_type, |