We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec836e0 commit 0cb49d8Copy full SHA for 0cb49d8
components/PanelResizer.tsx
@@ -26,6 +26,8 @@ export function PanelResizer(): ReactElement {
26
return;
27
}
28
29
+ document.body.style.userSelect = "none";
30
+
31
const updatePosition = (event: MouseEvent): void => {
32
event.preventDefault();
33
event.stopPropagation();
@@ -42,6 +44,7 @@ export function PanelResizer(): ReactElement {
42
44
window.addEventListener("mouseup", stopDragging);
43
45
46
return () => {
47
+ document.body.style.userSelect = "";
48
window.removeEventListener("mousemove", updatePosition);
49
window.removeEventListener("mouseup", stopDragging);
50
};
0 commit comments