vcl/source/control/scrbar.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 9f0e3802e621fb02efde1778c151b93630cdd2fa Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> Date: Thu Apr 28 15:09:16 2016 +0900 tdf#99574 fix sluggish scrollbar for an immediate paint Change-Id: I34e87ac580aa1ddb6bc3851bbe99689189c787f6 diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx index de89a6c..fa68c42 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;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits