Helge Hafting wrote:
> Lars Gullik Bjønnes wrote:
>> | What is the problem that you are trying to solve here?
>>
>> Is it my old pet? "Countinued scorrling after key-release"?
>>
>> What was wrong with my patch from months back?
>>   
> 
> I tried this with todays svn.
> The patch will indeed prevent scrolling after key-release,
> so it fixes the pageup/pagedown case.
> 

My patch eats the pageup/pagedown key events, but I don't
know what Lars' patch does.

> It does not help for jumpscrolling using the scrollbar - LyX will
> then overshoot a lot, if the scrolling work needs more than 100% cpu.


Attached a patch which is not mentioned to go in, but does it
at least fix the overshooting when scrolling by clicking in
the scrollbar?


Index: src/frontends/qt4/GuiWorkArea.cpp
===================================================================
--- src/frontends/qt4/GuiWorkArea.cpp   (revision 18599)
+++ src/frontends/qt4/GuiWorkArea.cpp   (working copy)
@@ -234,6 +234,7 @@
 void GuiWorkArea::adjustViewWithScrollBar(int)
 {
        scrollBufferView(verticalScrollBar()->sliderPosition());
+       QApplication::syncX();
 }

> 
> It is possible to use your patch and Peter Kümmels event_4 together.
> This cuts down on the scrollbar problems, but don't solve them completely.
> 
> Helge Hafting
> 
> 


-- 
Peter Kümmel

Reply via email to