FYI, the sample demo is broken for me. When I hit play it the whole frame "vibrates", apparently switching between two (nearby) sizes every frame or so. (Hotspots are still clickable.) Resizing the window or moving to a different DPI screen doesn't help. Chrome 106.0.5249.103 on Win10.
Same, totally broken for me with overlapped/vibrating screenshots that keep changing size. And it captures scroll on occasion so it makes the mousewheel all wonky. And it keeps trying to steal focus even after I've scrolled past it.
you can often test dpr issues by zooming and refreshing. Different zoom levels give different devicePixelRatio values including many non-interger ones. At least in Firefox/Chrome