Skip to content

Mouse-up outside modal will close the model #786

@coastalwhite

Description

@coastalwhite

Description

Heya! Long time Typst user and love Typst.

One issue I run into almost every time I use the Typst webapp is when I select text in a pop-up / modal / dialog box and overshoot the box. It will close the modal. I have the tendency to select text like this everywhere, so this means I almost always have to consciously adjust in the webapp.

Would it be possible to adjust the behavior to be: if mousedown outside the modal and mouseup outside the modal (essentially the HTML click event), then close the modal. I think this is much closer to what many other modal libraries do.

Thank you very much for reading. Keep up the great work.

Image

Reproduction URL

No response

Browsers

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions