My favorites | Sign in
Project Home Downloads Wiki Issues Code Search
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 25135: svg onmousedown fire at wrong point when different viewbox used
4 people starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Merged:  issue 65238
Owner:  ----
Closed:  Apr 2012
Cc:  rjkroege@chromium.org, evan@chromium.org, senorbla...@chromium.org

Restricted
  • Only users with Commit permission may comment.


Sign in to add a comment
 
Reported by kudinov....@gmail.com, Oct 17, 2009
Chrome Version       :
Google Chrome	3.0.195.27 (Официальная сборка 28507)
WebKit	532.0
V8	1.2.14.20
User Agent	Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) 
AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.27 Safari/532.0

URLs (if applicable) : http://kudinov.name/chromebug.svg
Other browsers tested:
     Safari 4: FAIL similiar but inverse by x axis
  Firefox 3.x: OK
         IE 7: OK
         IE 8: OK

What steps will reproduce the problem?
1. open the attached file
2. click near the left and right side of the circle

What is the expected result?

onmousedown alert exactly when click the circle

What happens instead?

1. onmousedown alert when click on space at left side of the circle
1. onmousedown no alert when click at right side of the circle

Please provide any additional information below. Attach a screenshot if
possible.

bug appear only with viewbox changed to small values; also appear in 
Safari.

chromebug.svg
147 bytes   View   Download
Feb 19, 2010
#1 dhw@chromium.org
(No comment was entered for this change.)
Labels: SVG
Jul 6, 2010
#2 fsam...@chromium.org
(No comment was entered for this change.)
Owner: fsam...@chromium.org
Jul 6, 2010
#3 fsam...@chromium.org
(No comment was entered for this change.)
Cc: rjkro...@chromium.org
Jul 7, 2010
#4 fsam...@chromium.org
I have attached a possible fix/workaround. Really there are two bugs. One is that mouse coordinates are truncated into an IntPoint in RenderSVGRoot::nodeAtPoint. That's an easy fix. The second issue is nasty. Skia doesn't play well with non-screen coordinate systems. The workaround is to simply scale the Path (circle) to coordinates that Skia can comfortably deal with (truncate into integers). 

I will post this patch on WebKit bugzilla too. I just wanted the opinion of people here on this workaround first. 
issue25135cl
2.5 KB   View   Download
Cc: e...@chromium.org senorbla...@chromium.org
Nov 2, 2011
#5 dhw@chromium.org
(No comment was entered for this change.)
Labels: -SVG Webkit-SVG
Nov 2, 2011
#6 dhw@chromium.org
(No comment was entered for this change.)
Labels: -Area-Misc Area-WebKit
Feb 28, 2012
#7 fsam...@chromium.org
(No comment was entered for this change.)
Owner: ---
Apr 29, 2012
#8 pdr@chromium.org
We finally squashed this bug with updated Skia hit testing :)
Status: Duplicate
Mergedinto: 65238
Oct 13, 2012
#9 bugdroid1@chromium.org
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Labels: Restrict-AddIssueComment-Commit
Mergedinto: chromium:65238
Mar 10, 2013
#10 bugdroid1@chromium.org
(No comment was entered for this change.)
Labels: -Webkit-SVG -Area-WebKit Cr-Content-SVG Cr-Content
Apr 5, 2013
#11 bugdroid1@chromium.org
(No comment was entered for this change.)
Labels: -Cr-Content Cr-Blink
Apr 5, 2013
#12 bugdroid1@chromium.org
(No comment was entered for this change.)
Labels: -Cr-Content-SVG Cr-Blink-SVG
Sign in to add a comment

Powered by Google Project Hosting