The worlds most jank fix for hidpi known to man 🚀
This commit is contained in:
parent
9983f9884d
commit
ac9393c2b3
1 changed files with 8 additions and 8 deletions
16
main.js
16
main.js
|
|
@ -129,10 +129,10 @@ if ('webkit' in window && 'messageHandlers' in window.webkit) {
|
|||
|
||||
window.webkit.messageHandlers.copySnapshot.postMessage([
|
||||
'clipboard',
|
||||
boundingRect.x + 1,
|
||||
boundingRect.y + 1,
|
||||
boundingRect.width - 2,
|
||||
boundingRect.height - 2,
|
||||
boundingRect.x + 2,
|
||||
boundingRect.y + 2,
|
||||
boundingRect.width - 3,
|
||||
boundingRect.height - 3,
|
||||
]);
|
||||
};
|
||||
|
||||
|
|
@ -142,10 +142,10 @@ if ('webkit' in window && 'messageHandlers' in window.webkit) {
|
|||
|
||||
window.webkit.messageHandlers.copySnapshot.postMessage([
|
||||
'file',
|
||||
boundingRect.x + 1,
|
||||
boundingRect.y + 1,
|
||||
boundingRect.width - 2,
|
||||
boundingRect.height - 2,
|
||||
boundingRect.x + 2,
|
||||
boundingRect.y + 2,
|
||||
boundingRect.width - 3,
|
||||
boundingRect.height - 3,
|
||||
]);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue