[Bug] When the cursor clicks inside the code block and then outside the code block, the entire document jumps up
Closed this issue · 12 comments
I can't reproduce this unfortunately. Can you send me maybe a sample document?
I think that bug is coming from Obsidian. If I disable the plugin, the same behavior occurs. Can you verify that?
What do you mean by "if I close the plugin in another library, it won't jump"
If I disable the plugin and set the "Properties in document" to source, I still have that jumping. Correct me if I am wrong, but this seems to me as an Obsidian bug.
If I disable the plugin and set the "Properties in document" to source, I still have that jumping. Correct me if I am wrong, but this seems to me as an Obsidian bug.↳
If property is set to visible and plugin is turned on, there will definitely be jumping phenomenon
If property is set to visible and plugin is turned off, there may not be any jumping phenomenon
If property is set to source and plugin is opened, there will definitely be jumping phenomenon
If property is set to source and plugin is turned off, there will be no jumping phenomenon
It's so weird, and I'm not sure what's going on
I am confused a little as well. This is with the property set to source, and plugin turned off:
Obsidian.mp4
I just checked again, and this issue seems to be solved now with the current Obsidian version. Maybe it was an Obsidian bug. Could you confirm it?
no reply received
no reply received 未收到答复
I found that this may have been caused by me modifying the font size in the code block
.cm-s-obsidian .HyperMD-codeblock {
font-size: 0.7em;
}
Even in the latest version, if I enable the CSS style above, this phenomenon will still occur, So I turned off this style setting
That's interesting, because I could reproduce the issue, but I didn't modify the font size of the code blocks. I will look at it again.