• Hello,

    actually the dragging and scrollWheelZoom depending on “mobile” or not.
    Is it possible to enable it for mobile or make it configurable?

    Thanks in advance.
    Daniel

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    The plugin already checking it the maps is being displayed on a mobile or not, setting dragging and scroll wheel accordingly.

    Could you please explain what you mean?

    Thread Starter dani1993

    (@dani1993)

    Im sorry.
    Yes and thats the “problem”. I want to have the same behavior on mobile and desktop.
    Because i cant drag or zoom on mobile devices, but i want to.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Please provide a live link so I can take a look.

    Thread Starter dani1993

    (@dani1993)

    This site is not live now, sorry ??

    This is the code:

    if(L.Browser.mobile) {
    	var mobileDrag = false;
    	var mobileZoom = false;
    }
    else {
    	var mobileDrag = true;
    	var mobileZoom = true;
    }

    If i set it to ‘true’ all time, it is working.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Not live?
    Does that mean that you are testing it and using an actual mobile phone ?

    Thread Starter dani1993

    (@dani1993)

    Yes thats correct.

    • This reply was modified 3 years, 12 months ago by dani1993.
    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Simulations like Chrome’s Responsive Developer Mode can not simulate mobile actions, such as finger pinching, used for zooming in and out.

    Thread Starter dani1993

    (@dani1993)

    I know, i use a real phone. Samsung Galaxy S7 Android 8 with default browser.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘mapOptions depend on mobile’ is closed to new replies.