Re: Event Bubbling through Layers
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <861b3434-b7e4-4d89-a1fa-196d9601f4d5@w40g2000yqd.googlegroups.com> |
> Do you want the mouse event to trigger listeners on both the upper and lower > rect, or just the lower? If you just want it to trigger on the lower then you > can put pointer-events="none" on the upper rect. I would like both, but that is interesting about "pointer-events", I will read up on it. > > Correct. The target for the event is chosen, generally based on which is "top > most"... > That's too bad. I'm working with translucent objects and so I can still see one behind the other. It seems intuitive that if I can see it I should be able to mouseover it and have it respond. I guess I'm thinking that mousing over things with my mouse cursor is the same sort of interaction as having my shadow move over an object - shadows go through translucent things - while clicking would be more like physically touching something. My intuition leads me to expect that I should be able to mouseover something that is behind a translucent object but I couldn't click on it - just like my shadow would go through a glass window but not my hand! Hmmm...interesting how we subconsciously blend the physical and digital worlds. Thanks for the lesson.