Skip all buttons in headerbar when start dragging, closes #8

This commit is contained in:
chrox
2024-12-04 12:00:32 +01:00
parent 1429f111bc
commit ec1ec2265d
@@ -45,7 +45,11 @@ const WindowButtons: React.FC<WindowButtonsProps> = ({
const handleMouseDown = async (e: MouseEvent) => {
const target = e.target as HTMLElement;
if (target.closest('.window-button') || target.closest('#exclude-title-bar-mousedown')) {
if (
target.closest('.btn') ||
target.closest('.window-button') ||
target.closest('#exclude-title-bar-mousedown')
) {
return;
}