Virtual whiteboard for sketching hand-drawn like diagrams
fix: eye-dropper not working with app offset correctly on non-1 dPR (#6835)
David Luzarfc9a9a2571c6
diff --git a/src/components/EyeDropper.tsx b/src/components/EyeDropper.tsxindex 9e452ce88a..8e3e21ece3 100644--- a/src/components/EyeDropper.tsx+++ b/src/components/EyeDropper.tsx@@ -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;