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

Difficult to select lines on iPhone #61

Open
TransitScreen opened this issue Jan 24, 2012 · 4 comments
Open

Difficult to select lines on iPhone #61

TransitScreen opened this issue Jan 24, 2012 · 4 comments

Comments

@TransitScreen
Copy link
Contributor

I have had increased trouble recently demoing TNM to people, in particular, it's difficult to select lines and stops. I feel like this is a regression; could the hit radius have decreased when the icons changed?

@chosak
Copy link
Contributor

chosak commented Jan 24, 2012

The lines haven't changed, and even the icon sizes are the same as before the recent change (commit f03a92d - the images themselves are the same size, there's just more transparent padding now). I agree that it's always been hard to click on the lines - unfortunately I don't know of an easy way to add transparent padding around them or otherwise increase the hittable area.

@TransitScreen
Copy link
Contributor Author

Where do I file a bug for "my fingers have regressed"?

Seriously, we should look into how leaflet handles hits and see if we can patch something there. It's not very usable right now.

@TransitScreen
Copy link
Contributor Author

See methods in https://github.com/CloudMade/Leaflet/tree/master/src/layer/vector. There are SVG, Canvas, and VML (for IE) methods, and we need to know which one is used on which browser.

canvas/Polyline_Canvas has at least some code for addressing it: "if (L.Browser.touch) {
w += 10; // polyline click tolerance on touch devices
}"

@TransitScreen
Copy link
Contributor Author

According to some vague documentation and commits,

Canvas is default for Android < 3, but can be enabled anywhere.
VML is for IE 6-8.
SVG is default otherwise.

The drawing method affects all vector data (polylines, polygons, and circles).

@ghost ghost assigned TransitScreen Feb 5, 2012
@TransitScreen TransitScreen removed their assignment Mar 16, 2015
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

1 participant