Skip to content

Dragging not possible anymore on non-touch devices #10

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

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