Skip to content

Dragging not possible anymore on non-touch devices #10

Closed

Description

@tkempken

Dragging of split slider is not possible (anymore) due to an incorrect assumption of the L.Browser module.

on(range, L.Browser.touch ? 'touchstart' : 'mousedown', cancelMapDrag, this)

on(range, L.Browser.touch ? 'touchend' : 'mouseup', uncancelMapDrag, this)

Tested with Google Chrome 105.0.5195.102 and version earlier.
Android/iOS is still working, only desktop browsers are affected.

Background;:

L.Browser.touch stays true even if you are using a non-touch device. It would be better to rely on global window variable like other leaflet plugins.

Activity

  1. added a commit that references this issue on Sep 12, 2022
    6991c99
  2. added a commit that references this issue on Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions