Skip to content

document mouseenter/mouseleave not fired on Firefox #1846

Closed
@Conduitry

Description

@Conduitry

It seems that Firefox does not fire mouseenter/mouseleave events on the document, so the new <svelte:document on:mouseenter/mouseleave> does not work there. It looks like they are fired on document.body, and they are also fired there on Chrome.

I know the whole point of <svelte:document> was to allow attaching these specific event handlers, but that's not cross-platform. The sanest thing might be to say 'ha, whoops, well don't use that' and to introduce a <svelte:body> that lets you attach handlers to the body. I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions