- From: Doug Schepers <doug@schepers.cc>
- Date: Fri, 1 Aug 2003 17:32:32 -0700
- To: <www-svg@w3.org>
Hi, Michael- You may want to try "style='pointer-events:none;' ". The disadvantage to this would be that it turns off all pointer events, including mouseover, etc., over the entire area, not just the regions that have shapes under them. There are more complex approaches that involve finding the bounding box of all the elements and doing coordinate-based hit-testing on them, but this is the simplest approach, if you don't mind the side effects. Another trick would be to move this polygon to the back on mousedown, capture the mouseup event on the newly exposed "underneath" shape, and then move the polygon back to the top after the mouseup. BTW, this list, www-svg, is really more of a W3C forum to discuss issues with the SVG Spec. For questions about development details and such, you'd be better off posting to the very active, friendly, and helpful list called SVG-Developers: http://groups.yahoo.com/group/svg-developers/ No harm done, of course, but you'll get much more response there. Hope that helps- -Doug ----- Original Message ----- From: <michael@dsc.ufcg.edu.br> To: <www-svg@w3.org> Sent: Friday, August 01, 2003 10:15 AM Subject: SVG elementīs event transparency > > Hello people, > > I have the folowing problem: I want create a polygon (path element) over > some region of SVG wich one have already SVG elements, but I want that > mouse events go beyond the object at upper layer and be dispatched to the > object just below the upper element. Have you ever had this situation? How > did you solved it? > > thanks in advance, > Michael > > >
Received on Friday, 1 August 2003 17:32:51 UTC