This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7750 - svg drawing badly placed when scrolling
Summary: svg drawing badly placed when scrolling
Status: RESOLVED FIXED
Alias: None
Product: Amaya
Classification: Unclassified
Component: Editing (show other bugs)
Version: 11.2
Hardware: Macintosh MacOS X
: P2 major
Target Milestone: ---
Assignee: Vatton
QA Contact: Vatton
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-29 09:27 UTC by Julien Cervelle
Modified: 2009-10-13 08:04 UTC (History)
5 users (show)

See Also:


Attachments
Test with text and svg (4.08 KB, text/html)
2009-10-11 17:20 UTC, Julien Cervelle
Details
simplified testcase (3.96 KB, application/xhtml+xml)
2009-10-11 18:15 UTC, fred.wang
Details

Description Julien Cervelle 2009-09-29 09:27:25 UTC
When scrolling, svg drawing moves up on the text. However clicking to edit the drawing seems to target the good drawing item, as if it was positioned correctly.
Comment 1 fred.wang 2009-10-11 15:20:16 UTC
(In reply to comment #0)
> When scrolling, svg drawing moves up on the text. However clicking to edit the
> drawing seems to target the good drawing item, as if it was positioned
> correctly.

Thanks for the report Julien. I discovered this bug once, but I do not remember how to reproduce it. Could you give a testcase?
Comment 2 Julien Cervelle 2009-10-11 17:20:22 UTC
Created attachment 772 [details]
Test with text and svg
Comment 3 Julien Cervelle 2009-10-11 17:21:13 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > When scrolling, svg drawing moves up on the text. However clicking to edit the
> > drawing seems to target the good drawing item, as if it was positioned
> > correctly.
> 
> Thanks for the report Julien. I discovered this bug once, but I do not remember
> how to reproduce it. Could you give a testcase?
> 

Actually, creating or opening any document with svg (directly included or in an object tag) does it (I guess it is a macos X only bug) though for last test, while scrolling, the svg moved to the right. I also noticed that when scrolling with the two fingers gesture it is worst: the scroll bar goes down but the page does not move though it blinks.

I attached a sample html but as I said, any html with svg causes a problem.
Comment 4 fred.wang 2009-10-11 18:15:53 UTC
Created attachment 773 [details]
simplified testcase
Comment 5 fred.wang 2009-10-11 18:23:57 UTC
Thanks, there may be several issues here. It seems that the vertical shift is proportional to the scroll position. In your testcase, it looks like the matrix transform change it to an horizontal shift. This would mean that a scroll shift is locally applied to each individual svg object while it should only be applied globally to the <svg/> element.

I attached a simplified testcase without matrix transform so that the relation scroll/shift becomes clearer.
Comment 6 Vatton 2009-10-12 15:47:51 UTC
(In reply to comment #5)
> Thanks, there may be several issues here. It seems that the vertical shift is
> proportional to the scroll position. In your testcase, it looks like the matrix
> transform change it to an horizontal shift. This would mean that a scroll shift
> is locally applied to each individual svg object while it should only be
> applied globally to the <svg/> element.
> 
> I attached a simplified testcase without matrix transform so that the relation
> scroll/shift becomes clearer.
> 

The bug only occurred on Mac OS X. It is now fixed in the CVS version.
Thanks for the report.
Comment 7 fred.wang 2009-10-12 16:01:24 UTC
> The bug only occurred on Mac OS X. It is now fixed in the CVS version.
> Thanks for the report.
> 

The bug happened also on Linux since I could see it. Now, the bug of the shift is fixed, but the diamond in the first testcase is still displayed outside the SVG (however this seems an unrelated issue).
Comment 8 Vatton 2009-10-13 08:04:38 UTC
(In reply to comment #7)
> > The bug only occurred on Mac OS X. It is now fixed in the CVS version.
> > Thanks for the report.
> > 
> 
> The bug happened also on Linux since I could see it. Now, the bug of the shift
> is fixed, but the diamond in the first testcase is still displayed outside the
> SVG (however this seems an unrelated issue).
> 

I was able to reproduce the circle bug on my Mac OS X but not on my Linux Ubuntu 32 platform.

I'm not able to reproduce these bugs since the fix neither on my Mac OS X platform nor on my Linux Ubuntu 32 platform.

What is your Linux platform? What is the Mesa version?