Comments (5)
This plugin works perfectly: https://github.com/davisriedel/obsidian-typewriter-mode
from cm-typewriter-scroll-obsidian.
PS: It is as if Typewriter Scroll was hesitating between two positions on the screen: a first position where the text is shown for a very short time, and then the final position. Each time I press a key, the first position is used, and then the final position.
from cm-typewriter-scroll-obsidian.
I have the same effect, but it appears on any note. When I activated the plugin, at first everything worked almost normally. These jumps also happened, but much less often. But then for some reason they also began to happen from every click. Although I did not change anything.
Reboot did not help.
OS: Windows 10
Obsidian 1.3.5.
from cm-typewriter-scroll-obsidian.
Same issue.
from cm-typewriter-scroll-obsidian.
@fcFn I found the other plugin to be really buggy. Utterly unusable.
This seems to be linked to a previously closed issue #6 but I checked my current plugin is up to date and the code changes for the onRefresh
function are corrected according to this fix (Line 136).
I have also found the same problem of 'each character causes the window to go up and down' but my zen mode is deactivated and the document is rather long. This doesn't happen for all lines, but a shaky line remains shaky for the whole line. I think this may be due to how we divide the offsetHeight - how is it rounded?
function onRefresh(cm) {
const halfWindowHeight = Math.ceil(cm.getWrapperElement().offsetHeight / 2);
const linesEl = cm.getScrollerElement().querySelector('.CodeMirror-lines');
linesEl.style.paddingTop = `${halfWindowHeight}px`;
linesEl.style.paddingBottom = `${halfWindowHeight}px`; // Thanks @walulula!
if (cm.getSelection().length === 0) {
cm.execCommand("scrollSelectionToCenter");
}
}
so I did this fix
from cm-typewriter-scroll-obsidian.
Related Issues (20)
- Conflict with core-search-assistant-plugin
- feature request : no backspace mode
- Feature request, plugin on/off indicator in the status bar. HOT 1
- should scroll when moving a line
- Big gap between the file name and the text HOT 5
- Bug in 1.0.0: Clicking on a footnote causes the tab bar to disappear
- [bug report] causing the workspace shake up and down when have both stack view and tab view split in neighbor HOT 6
- Typewriter scrolling
- Toggle Zen Mode + Typewriter together
- Huge space between the title and the content HOT 3
- Live preview out of sync
- Zen mode only in active tab HOT 1
- RFE: Highlight current line HOT 11
- VS Code style typewriter scroll HOT 1
- Zen Mode doesn't apply to centered LaTeX
- Bug: when used in combination with Fastkeys deletes words.
- BUG: Hides bottom half of file explorer pane
- Conflict with Obsidian's new Table View HOT 6
- Article & Video on your Plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cm-typewriter-scroll-obsidian.