Hi!

It seems that a big annoyance for many people is the bad scrolling in 1.5 and 1.6. The paragraph heights are estimated by some tricky logic which more or less takes the average of the visible paragraphs. The bug report: http://bugzilla.lyx.org/show_bug.cgi?id=2426

Is anybody working on this?

I was playing around with the straight forward approach to cache the paragraph heights in some map which maps Paragraph* to height. Then instead of using the estimate to guess a size for invisible paragraphs I just used a loop to add up the cached values (this could be improved of course by some clever use of a balanced binary tree to get sums up to every paragraph for free).

Of course the whole approach only works if the cache is filled (enough) with real heights. This is not the case at the beginning. But as soon as it is filled you get perfect scrolling behaviour.

I think most other applications do some layouting in the background to get those height values. Has anybody tried to do the same with LyX?

One could fill up the height cache in idle times for example after the document is loaded, maybe with some regulation to not stress the machine too much.

Comments?
  Stefan


Attachment: PGP.sig
Description: Signierter Teil der Nachricht

Reply via email to