Y
Hacker News
new
|
ask
|
show
|
jobs
by
joennlae
937 days ago
+1. Does someone know how to do that?
3 comments
progbits
937 days ago
Firefox only:
https://news.ycombinator.com/item?id=36757542
link
m1el
937 days ago
The minimap contains a copy of the content, but with `transform: scale`. The rest is handling `window.onscroll` and mouse events on the overlay.
link
Klaster_1
937 days ago
Found a canvas-based library for this:
https://larsjung.de/pagemap/
. Definitely not what OP uses, where the minimap is a shrunk copy of the content markup, with all the drawbacks, such as page search finding the same item twice.
link
orlp
937 days ago
The author should really add at least aria-hidden="true" to the minimap element.
link