Mode Switch Scroll Fix

approved

by Code-Sub

Seamlessly preserves exact scroll position when switching between Edit and Reading modes. - This plugin has not been manually reviewed by Obsidian staff.

63 downloadsUpdated 10d agoMIT

Mode Switch Scroll Fix for Obsidian

A lightweight Quality-of-Life (QoL) plugin that seamlessly preserves your exact scroll position when toggling between Editing View and Reading View (Ctrl + E).

❓ The Problem

In long documents or notes containing large tables, callouts, and code blocks, toggling views often causes the scroll position to jump unexpectedly to the top of the note or table.

✨ How it works

This plugin intercepts the mode switch event and triggers a microscopic, invisible DOM scroll refresh. This forces Obsidian and CodeMirror's virtual viewport caches to stay perfectly in sync without any visual jitter.

🚀 Installation

  • BRAT: Add beta plugin using repository URL https://github.com/Code-Sub/obsidian-mode-switch-scroll-fix
  • Manual: Download main.js and manifest.json from the latest Release into your vault's .obsidian/plugins/mode-switch-scroll-fix/ folder.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.