Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In mobile not work #1

Closed
josejachuf opened this issue Jun 7, 2021 · 5 comments
Closed

In mobile not work #1

josejachuf opened this issue Jun 7, 2021 · 5 comments

Comments

@josejachuf
Copy link

Hello

First of all, thank you very much for your work .
I am using this component in a project, it works fine on desktop, but I can not draw on mobile devices or in the desktop browser using mobile mode.

It has happened to you or is something that I am doing wrong

Jose

@Esurnir
Copy link
Owner

Esurnir commented Jun 7, 2021

Hi, leaflet-freedraw unfortunately doesn't seem to support mobile drawings (tested on iOS using this demo). I advise opening an issue with leaflet-freedraw for mobile support. I'm just wrapping around Wildhoney's code in a vue2-leaflet compatible manner.

@Esurnir Esurnir closed this as completed Jun 7, 2021
@Esurnir
Copy link
Owner

Esurnir commented Jun 7, 2021

I personally would advise disabling the vue component (I think a v-if would work, another way is setting the mode to NONE or 0) if you detect you're in a mobile environment. But right now the underlying "drawing capture" isn't handling touch events it seems.

@josejachuf
Copy link
Author

Hi @Esurnir , thanks for the answer.

After I sent here I went to xxxx and saw that there were already several similar reports

I personally would advise disabling the vue component (I think a v-if would work, another way is setting the mode to NONE or 0) if you detect you're in a mobile environment. But right now the underlying "drawing capture" isn't handling touch events it seems.

I'm doing it, if it's in mobile disabled the drawing

Jose

@Esurnir
Copy link
Owner

Esurnir commented Jun 7, 2021

Have you tried "tap: true" as a leaflet map option when mobile ? Something I found while googling. I believe you can pass the option as a :options="mapOptions" with map options an object containing that. Or something similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants