Closed Bug 926826 Opened 11 years ago Closed 11 years ago

SVG line hit detection is only 1 pixel wide in Open Street Map's iD editor

Categories

(Core :: SVG, defect)

22 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 676001

People

(Reporter: will.pittenger1+mozbugzilla, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release)
Build ID: 20130910160258

Steps to reproduce:

I edit Open Street Map with their iD editor (based on HTML5).  I'm seeing an issue where ways can be tough to select because the JavaScript sees the way as only one pixel across even if drawn with a much thicker stroke.

The OSM people I've spoken with tell me that hit detection is dependent on the browser's implementation of SVG and JS, not an issue in iD itself.  Essentially, they're blaming Firefox.

This is only intermittent and won't happen every time.  It's more like about 30% of the time.

I don't know of other sites with this issue.  However, most don't use SVG files built on the fly.


Actual results:

Ways, both areas and lines, can act like they're only 1 pixel wide.  On today's high resolution devices, that can be tough to hit.


Expected results:

Ways should have an minimum width that ensures you can always select them.
In that link, just about anything other than the background is a way that might have the problem.  Unfortunately, no specific way can be provided as it might happen for me and not after a reload. :p  Intermittent bugs can be a real pain in the neck.  In my tests just now, no ways have the issue.  If that happens for you, try panning the map or reloading everything.  I can't provide more help reproducing it.
One pattern I may have seen is that many of the problem ways were mostly horizontal.  But I have no idea how relevant that is.
Comment 2 is the key point :-)
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.