XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Doing That Drag Thang
Subject: When SVG is embedded in HTML...
Date: 2003-04-25 03:40:36
From: Steve Clay

Great article on dragging, thanks a lot. There's a problem when the SVG is embedded in a html page: the coordinates returned from evt.clientX seem to be out by about 50 (strangely the clientY seems to be right!). Any ideas on how to find out dynamically what this offset is so that it can be allowed for in the rest of the code?


Thanks
Steve Clay


Previous Message Previous Message   Next Message Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938