Skip to content

Releasing mouse outside window during click+drag breaks drag state in Firefox #2610

@silasray

Description

@silasray

Found this issue working on a project, but repros just as easily from the map on leafletjs.com.

  1. Click in the map area (start drag+drop) in Firefox
  2. Drag outside browser page area (outside window, in to address/title bar, etc)
  3. Release mouse button
  4. Bring cursor back in page area

Result: Map continues to pan following the cursor until user clicks inside page area.

This should behave as it does in other browsers, specifically, that the map continues to pan around even while the cursor is outside the window until the button is released. It looks to be something funky with Firefox, but Google managed to make it work right in Maps, so there's at least a demonstrated workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions