🐛 Prevent stuck drag state when opening native emoji picker

This commit is contained in:
Baptiste Arnaud 2025-06-11 11:26:25 +02:00
parent a4d622837a
commit 5ec770ad5e
No known key found for this signature in database

View File

@ -339,7 +339,8 @@ export const Graph = ({
};
useEventListener("keydown", (e) => {
if (e.key === " ") setIsDraggingGraph(true);
if (e.key === " " && !e.metaKey && !e.ctrlKey && !e.altKey && !e.shiftKey)
setIsDraggingGraph(true);
});
useEventListener("keyup", (e) => {
if (e.key === " ") {