The worlds most jank fix for hidpi known to man 🚀

This commit is contained in:
Julia Johannesen 2026-03-31 23:23:15 -04:00
parent 9983f9884d
commit ac9393c2b3
Signed by: julia
GPG key ID: 4A1377AF3E7FBC46

16
main.js
View file

@ -129,10 +129,10 @@ if ('webkit' in window && 'messageHandlers' in window.webkit) {
window.webkit.messageHandlers.copySnapshot.postMessage([ window.webkit.messageHandlers.copySnapshot.postMessage([
'clipboard', 'clipboard',
boundingRect.x + 1, boundingRect.x + 2,
boundingRect.y + 1, boundingRect.y + 2,
boundingRect.width - 2, boundingRect.width - 3,
boundingRect.height - 2, boundingRect.height - 3,
]); ]);
}; };
@ -142,10 +142,10 @@ if ('webkit' in window && 'messageHandlers' in window.webkit) {
window.webkit.messageHandlers.copySnapshot.postMessage([ window.webkit.messageHandlers.copySnapshot.postMessage([
'file', 'file',
boundingRect.x + 1, boundingRect.x + 2,
boundingRect.y + 1, boundingRect.y + 2,
boundingRect.width - 2, boundingRect.width - 3,
boundingRect.height - 2, boundingRect.height - 3,
]); ]);
}; };