Le 21/12/2024 à 19:15, Pavel Sanda a écrit :
Actually you are right, once the figures are loaded, the caret tends to
stay on similar position of the screen. But not initially, it probably
gets shifted by the onloading of images above.

I pushed a solution to master at 0fa3aba5c6e, if it works well it should go to branch too. Most of the patch is an improvement, I only have a doubt about Cursor::saveBeforeDispatchPosXY, but the return value was probably bogus in cases that assert now.

The big issue here is to know whether there can be cases where the cursor is out of screen, either from the preview trick or maybe scrolling without "cursor follows scrollbar". I am still unsure about what we have to fear, there are places in code (look at calls to getPos()) that have a crash potential.

JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to