Still struggleing with a solution for this. My knowledge of event handeling clearly isnt good enough;
a) Is it possible to pass an event (or all events) to a parent/ container element and have it automaticaly passed on to all its children? b) would this event be triggered under the normal conditions of the children, or would it just trigger under the parents conditions. That is, if I pass a event that happens to be a mouse over event from parent to child, would it trigger if the mouse isnt actualy over the child? (but merely over the parent). Or would it still correctly only fire if its over the child. My end goal remains the same; a method to have a overlay which doesnt block the event handeling of elements under it. I'm hoping its possible by somehow passing events down from the overlay to, say, a container with everything else. The long winded way to do it seems to be manualy checking all the elements, their co-ordinates, and calculating mouse over/out/click events myself. Surely theres an easier method? Thanks, Thomas On Oct 10, 1:16 pm, darkflame <[email protected]> wrote: > hmz...something to keep an eye on, but sadly IE and Opera dont support > it yet;http://caniuse.com/pointer-events > > On Oct 8, 1:19 pm, David Given <[email protected]> wrote: > > > > > On 08/10/11 11:48, darkflame wrote: > > [...] > > > > Basicly I have a page with a lot of widgets, imagine if I wanted to > > > tint the screen slightly - for example a 50% blue overlay. Yet I still > > > want the widgets all clickable/interactable as normal. > > > You can do it by setting pointer-events:none on the overlay DIV... but I > > don't know what the browser support is like for this. Here's a demo: > > >http://robertnyman.com/css3/pointer-events/pointer-events.html > > > -- > > ┌─── dg@cowlark.com ─────http://www.cowlark.com───── > > │ > > │ "Under communism, man exploits man. Under capitalism, it's just the > > │ opposite." --- John Kenneth Galbrith > > > signature.asc > > < 1KViewDownload -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
