New issue
Advanced search Search tips

Issue 705407 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

SVG path with small stroke-width does not receive mouse events

Reported by mike.arv...@futurice.com, Mar 27 2017

Issue description

UserAgent: 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:
 
index.html
2.0 KB View Download
paths.svg
451 bytes Download
chrome-svg-path-click.gif
91.4 KB View Download

Comment 1 by f...@opera.com, Mar 27 2017

Labels: -OS-Mac
Status: Available (was: Unconfirmed)
Components: Blink>HitTesting
Labels: BugSource-User PaintTeamTriaged-20170327
Project Member

Comment 3 by sheriffbot@chromium.org, Mar 28 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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
Labels: -Hotlist-Recharge-Cold OS-Android OS-Chrome OS-Linux OS-Mac OS-Windows
Status: Available (was: Untriaged)

Sign in to add a comment