Right now, modals on itch.io dismiss when the mouseUp event is detected outside of the modal.
This means that if I highlight text and move my cursor outside the modal before letting go, the popup window is dismissed (see image below).
Suggestion: Instead, only dismiss the modal on mouseUp if mousedown also happened outside the modal.
Today the behavior seems to be that if either mousedown OR mouseup occurs outside the modal, dismiss.
Simply put, my issue is that I often accidentally dismiss modals when trying to select text.