• Resolved Bjarne Oldrup

    (@oldrup)


    Hey! I’m testing this fine little plugin out, and it looks like an efficient solution for my TOC-needs ?? However, when Simple TOC is enabled, and I’m editing longer posts, the editor intermittently scrolls up a bit, and down to where I’m editing again. I haven’t timed it, but my guess is that it appears when WordPress autosaves? ???♂? It’s not that it’s unbearable, but it is somewhat distracting.

    Something you ever head about?

    Please let me know if I can provide additional information or tests.

    Kind regards,
    Bjarne

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Marc Toensing

    (@marcdk)

    Yes, the “jump” occurs when SimpleTOC reloads after the page is saved. I can’t promise a quick fix for this. One option could be to disable SimpleTOC’s automatic saving through a global setting, but this might not be the best for user experience.

    Thread Starter Bjarne Oldrup

    (@oldrup)

    Hmm… If, say, the current setting remains the default, and an option to disable automatic saving was a properly documented option on the settings screen, something like this:

    Mockup: manually update TOC feature

    … don’t you think it would be an okay user experience?

    Of course, there needs to be a button or menu item to manually trigger the TOC update. This approach is used in similar solutions, like Getwid:

    Screenshot: Manual update TOC button in Getwid’s TOC block.

    Unless, of course, it’s possible to distinguish between auto-saving (which triggers the ‘jump’) and manual saving in the block editor. Cause, if that is possible, an option to only update the TOC when I’m done editing and I hit the save/update button would be a fine compromise.

    Thread Starter Bjarne Oldrup

    (@oldrup)

    There’s also the compromise, to reduce the frequency of autosave. That is really a matter of preference, but I found that for me, a 10-minute interval is just fine. This can be set with this snippet:

    if ( ! defined( 'AUTOSAVE_INTERVAL' ) ) {
        // Change 600 to the number of seconds you prefer (10 minutes in this example).
        define( 'AUTOSAVE_INTERVAL', 600 );
    }

    I’ll do some editing with that setting; experiencing if the “jump” still affects my workflow.

    Thread Starter Bjarne Oldrup

    (@oldrup)

    The longer autosave interval is adequate for me. Resolved.

    Plugin Author Marc Toensing

    (@marcdk)

    Please update to 6.3.0 for two new options regarding this.

    Thread Starter Bjarne Oldrup

    (@oldrup)

    Well isn’t that a nice little treat. Thank you @marckdk!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Block editor scrolls intermitttently with SimpleTOC enabled’ is closed to new replies.