summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToma┼ż Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-04-28 15:09:16 +0900
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-05-18 09:28:53 +0000
commit12dc5807c7b459da501f6bbbe107575fe26b9a05 (patch)
tree63076d81b022cdbda84c1fbd5954f2aeff2aa00c
parentb7c9357dfbd119b0bad5034d61b1be140f99943b (diff)
tdf#99574 fix sluggish scrollbar for an immediate paint
Change-Id: I34e87ac580aa1ddb6bc3851bbe99689189c787f6 (cherry picked from commit 9f0e3802e621fb02efde1778c151b93630cdd2fa) Reviewed-on: https://gerrit.libreoffice.org/24912 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--vcl/source/control/scrbar.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index 5d44cd7e9eed..9fb2e3fa0bec 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -863,6 +863,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;