Andre Poenitz wrote: > On Mon, Nov 10, 2003 at 11:51:31PM +0100, Alfredo Braunstein wrote: >> One of the problems I see is that the insets lose track of their position >> if we scroll away. >> >> Maybe a solution would be to cache the absolute y position of the tip >> inset in LCursor as soon as it is push()ed. >> >> If this seems reasonable I would try to do it tomorrow. > > Don't you think we should just move to absolute screen coordinates > everywhere? This scheme looks robust and simple...
But this is exactly the problem right now: if you scroll with the scrollbar, the coordinates where the cursor is remain invalid, and so a future fitCursor call has no enough info. Alfredo