Skip all buttons in headerbar when start dragging, closes #8
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user