logseq / logseq/logseq

Flickering/jerking of headers smaller or equal to h3

Open
#8,367 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:type/bug can-be-reproduced css os:linux ux
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

Search first
  • I searched and no similar issues were found
What Happened?

When clicking with a mouse to change cursor position in a block that has a parent with h3, h4, h5, h6 tag, there is a very noticable jerk -- the size of that header changes for a split second

Reproduce the Bug

text from the video that contains h4 header

- #### chapter 1 intro  
	- innodb  
		- datafiles in tablesplace  
		- uses mvcc  
			- defaults to REPEATABLE READ  
			- next-key locking strategy prevents phantom reads  
			- locks gaps in the index => prevents phantoms from being inserted  
		- clustered index  
		- strive for a small primary key if you'll have many indexes  
		- optimizations  
			- prefetching from disk  
			- adaptive hash index  
Expected Behavior

There should be no jerking. It is smooth when using h1, h2 or no header tag at all. But not when using h2, h3...

Screenshots

Demo

Desktop or Mobile Platform Information

No response

Additional Context

Desktop 0.8.16

Are you willing to submit a PR?
  • I'm willing to submit a PR (Thank you!)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the flicker in the editor using the provided nested list with an h4 header, then trace the frontend markdown/header rendering and cursor-position handling. Compare behavior with h1, h2, and no header; done means clicking to reposition the cursor no longer changes h3–h6 header size or causes a visible jerk.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.