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

Responsive does not draw the start line #476

Closed
aleffabricio opened this issue Jul 29, 2019 · 4 comments
Closed

Responsive does not draw the start line #476

aleffabricio opened this issue Jul 29, 2019 · 4 comments

Comments

@aleffabricio
Copy link

Hello,

First of all, I would like to congratulate you on the plugin.

A question, In responsive mode when drawing a circle, rectangle, polygon does not appear the starting line. Follow example below:

Gif Mobile

OBS:
This problem is related to so-called #263 ?

@codeofsumit
Copy link
Contributor

The hintlines are drawn using mouseevents like mousemove. On touch-devices, there is no mouse (or no mouse events). That's why you can't see a line. It's like moving your thumb.

Now I can see that in your GIF, it should show the line but I'm also confused as to why you have a mouse on a touch device.
There should be no issue regarding responsiveness though. Resizing the browser will still work.

It would be great to get more info like Browser and Device and if the issue appears on http://leafletpm.now.sh

@aleffabricio
Copy link
Author

Thanks for the answer, in this example i am using chrome responsive mode on the web for the mouse pointer appear. When I emulated on my phone, it was in a webview where I had the same result shown in gif.

teste

@codeofsumit
Copy link
Contributor

Ah got it. Ok, that's because it's touch mode. Imagine doing this on your phone, there is nothing to connect the line to because I can't know where your thumb is until you touch it ;-)

@aleffabricio
Copy link
Author

yes I understand, thank you very much for the reply.

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

No branches or pull requests

2 participants