Le 20/10/2025 à 11:41, Jean-Marc Lasgouttes a écrit :
I have to find the place where it is drawn, folded  or not.

        // Expensive operations are on a timer.  We finish the update 
immediately
        // for sparse edition actions, i.e. there was no edition/cursor movement
        // recently, then every 300ms.
        if (!timer_->isActive() && !keep_expanded_) {
                finishUpdateView();
                timer_->start(300);
        }

So we have a 300ms timer for the "expensive" stuff, which contains the selection of the current item in outline. Solutions may be
- smaller delay, but there is still a flicker.
- make selection faster; this is complicated because the toc can contain several buffers (child documents), so that a dichotomy is more difficult. - use a trivial cache of the last selected element to try before a full search.

JMarc
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to