Merge branch 'master' into arnost/scroll-in-read-only-links

This commit is contained in:
dwelle
2023-08-02 17:53:30 +02:00
13 changed files with 196 additions and 35 deletions

View File

@@ -77,8 +77,8 @@ export const EyeDropper: React.FC<{
colorPreviewDiv.style.left = `${clientX + 20}px`;
const pixel = ctx.getImageData(
clientX * window.devicePixelRatio - appState.offsetLeft,
clientY * window.devicePixelRatio - appState.offsetTop,
(clientX - appState.offsetLeft) * window.devicePixelRatio,
(clientY - appState.offsetTop) * window.devicePixelRatio,
1,
1,
).data;