commit 741d055eba0a062d551ecafc16ab8b8d3b8a5e66
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Sat Nov 13 19:24:05 2021 +0100

    Fixup 1cbbe5c3: fix scrollbar with page down
    
    It turns out that the fix was not correct. The right thing to do is to
    recompte metrics only when screen has moved.
    
    Fixes bug #12144.
---
 src/BufferView.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index e4b7102..25b33b9 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -1909,7 +1909,8 @@ void BufferView::dispatch(FuncRequest const & cmd, 
DispatchResult & dr)
                cur.setCursor(doc_iterator_begin(cur.buffer()));
                cur.selHandle(false);
                // Force an immediate computation of metrics because we need it 
below
-               updateMetrics();
+               if (scrolled)
+                       processUpdateFlags(Update::Force);
 
                d->text_metrics_[&buffer_.text()].editXY(cur, p.x_, p.y_,
                        true, act == LFUN_SCREEN_UP);
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to