glitchassassin / armorer

Renders the King James Version as a performant, minimal, well-designed reading website
https://armorer.io/
Other
0 stars 0 forks source link

Wrong chapter is displayed in title bar #27

Open glitchassassin opened 3 months ago

glitchassassin commented 3 months ago

Displayed chapter seems to be off just for the initially loaded chapters - anything loaded after the fact seems fine

glitchassassin commented 3 months ago

looks like when you're at the beginning of a chapter, the previous chapter's intersect div actually intersects the screen (albeit under the header), which triggers the action to update the title/URL.

Since intersecting with more than 50% hinders the page load mechanism, maybe we just need to split that logic up so that the title updates at 100% intersection.