change modals so they close on mouse down outside the box

This commit is contained in:
Olivier Gagnon
2021-09-10 00:53:39 -04:00
parent c4617e4b9a
commit e906a6331f
7 changed files with 182 additions and 104 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ export function createPopup<T>(
display: "flex",
id: id,
backgroundColor: backgroundColor,
clickListener: onClick,
mouseDown: onClick,
});
gameContainer.appendChild(container);