diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2016-04-28 15:09:16 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2016-04-29 23:10:12 +0900 |
commit | 9f0e3802e621fb02efde1778c151b93630cdd2fa (patch) | |
tree | 77a3a2ca83a81f47d93832902d3280b63ea5c298 | |
parent | b1d4f658aa927ef0d62ffc387ab9593ad5dd8b3b (diff) |
tdf#99574 fix sluggish scrollbar for an immediate paint
Change-Id: I34e87ac580aa1ddb6bc3851bbe99689189c787f6
-rw-r--r-- | vcl/source/control/scrbar.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx index de89a6c3336d..fa68c4271c8d 100644 --- a/vcl/source/control/scrbar.cxx +++ b/vcl/source/control/scrbar.cxx @@ -843,6 +843,11 @@ void ScrollBar::ImplDragThumb( const Point& rMousePos ) ImplUpdateRects(); if ( mbFullDrag && (nOldPos != mnThumbPos) ) { + // When dragging in windows the repaint request gets starved so dragging + // the scrollbar feels slower than it actually is. Let's force an immediate + // repaint of the scrollbar. + ImplDraw(*this, SCRBAR_DRAW_ALL); + mnDelta = mnThumbPos-nOldPos; Scroll(); mnDelta = 0; |