Tirraa / dashboard_rtm

dashboard_rtm
MIT License
5 stars 1 forks source link

[Blog][ToC] Lost HL when hard scrolling really fast (i.e: SNAPPING camera) #112

Closed gustaveWPM closed 5 months ago

gustaveWPM commented 5 months ago

On Firefox, when I click on any point of my right scrollbar, it will SNAP the camera on the Y coord.

Sometimes, the ToC fails to detect and handle it properly.

gustaveWPM commented 5 months ago

This was caused by the intersection observer. The visibleHeadings object was stale... Totally rewritten and removed this piece of sh*t.

https://github.com/Tirraa/dashboard_rtm/commit/7fb85f3860290f4a6fed68c0d465c5bdba0c2b1a

gustaveWPM commented 5 months ago

Seems fixed. Gonna QA it manually later.

Will be closed in 2-3 weeks if not reproductible.