[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - vcl/source
Tomaž Vajngerl
tomaz.vajngerl at collabora.co.uk
Wed May 18 09:29:13 UTC 2016
vcl/source/control/scrbar.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 12dc5807c7b459da501f6bbbe107575fe26b9a05
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date: Thu Apr 28 15:09:16 2016 +0900
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 at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index 5d44cd7..9fb2e3f 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;
More information about the Libreoffice-commits
mailing list