Skip to content

Releases: Code-Sub/obsidian-mode-switch-scroll-fix

3.0.0 fix: reduce scroll offset errors on mode switch without tables

Choose a tag to compare

@Code-Sub Code-Sub released this 23 Sep 15:04

fix: reduce scroll offset errors on mode switch without tables

## What's Changed in v2.0.0

Choose a tag to compare

@Code-Sub Code-Sub released this 22 Sep 12:50

What's Changed in v2.0.0

  • Seamless Mode Switching: Completely overhauled the scroll synchronization engine when transitioning between Edit and Reading modes.
  • Visual Anchor Alignment: Solved the issue where partially visible tables or headings caused sudden viewport jumping.
  • Accurate Pixel Tracking: Replaced fragile mouse/touch listeners with pure displacement tracking for 100% reliable scroll restoration.
  • Theme & CSS Compatibility: Added content-height scaling to prevent cumulative drift caused by custom margins and bottom padding.

1.0.1

Choose a tag to compare

@Code-Sub Code-Sub released this 10 Sep 21:21

🐛 Bug Fixes

  • Fixed TypeError: view.getMode is not a function when loading deferred views during startup or layout rerendering.

v1.0.0 - Initial Release

Choose a tag to compare

@Code-Sub Code-Sub released this 10 Sep 08:19

🚀 Initial Release (v1.0.0)

✨ Features

  • Seamlessly preserves exact scroll position when toggling between Editing View and Reading View (Ctrl + E).
  • Fixes the persistent scroll jump/desync issue in documents containing large tables, callouts, and code blocks.
  • Zero visual flicker using micro-event sync.

📦 Installation

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