leaflet-map-component icon indicating copy to clipboard operation
leaflet-map-component copied to clipboard

On tables/Mobiles doesn't work

Open itamayo opened this issue 11 years ago • 4 comments

Hi there,

There is some problems with events on tables and mobiles (touchable devices). Zoom in/out doesn't work and neither markers/polygons. I have same related problem in other projects, whether I resolve the problem I would contact with you.

Good luck

itamayo avatar Nov 07 '14 08:11 itamayo

It appears that tap/touch event are triggered as "context menu", at least does work

Marker.on('contextmenu', function (e) {
                    //code
                }).addTo(map);

itamayo avatar Nov 07 '14 09:11 itamayo

Are you sure you have zoom enabled? I have it working alright on another project - http://prtksxna.github.io/pindrop/.

prtksxna avatar Nov 07 '14 11:11 prtksxna

It doesn't work to me, neither on PC (chrome/firefox updated ) [pindrop]

itamayo avatar Nov 07 '14 12:11 itamayo

@itamayo Very strange. Could you open up console and tell me if you are seeing any errors. What versions are you using and on what OS?

prtksxna avatar Nov 09 '14 03:11 prtksxna