SVG path with small stroke-width does not receive mouse events
Reported by
mike.arv...@futurice.com,
Mar 27 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36 Steps to reproduce the problem: 1. Open the demo page at https://chrome-svg-thin-path.surge.sh/ (hosts the attached index.html and paths.svg) 2. Try to hover and click on both the blue (thick) and red (thin) paths 3. Observe that blue path receives "mousemove" and "click" events, while the red path doesn't (maybe for a few exceptions) What is the expected behavior? The cursor should change while hovering on any segment of the thin red path, and any of its segments should also respond to mouse clicks. What went wrong? It looks as if the thin stroke-width (0.2) for the red line causes some events to not be caught. It seems some segments occasionally work, depending on the browser window width. Possibly due to a rounding/sub-pixel calculation issue? The attahed chrome-svg-path-click.gif illustrates this behavior. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 57.0.2987.110 Channel: stable OS Version: OS X 10.12.3 Flash Version:
,
Mar 27 2017
,
Mar 28 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Mar 28 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by f...@opera.com
, Mar 27 2017Status: Available (was: Unconfirmed)