As long it is a widget, you can add the listener for touchstart. Walking along a parent layout line, might be a hint, that you have to target another widget or event.
Greetz Christopher ________________________________________ Von: Derrell Lipman [[email protected]] Gesendet: Donnerstag, 14. Juni 2012 23:52 An: qooxdoo Development Betreff: Re: [qooxdoo-devel] mobile: layout parent is null On Thu, Jun 14, 2012 at 5:42 PM, Christopher Zündorf <[email protected]<mailto:[email protected]>> wrote: This way also works: list.addListener("touchstart", function(evt) { console.log("evt:",evt.getCurrentTarget()); }, this); Thanks. That would work if I could add a listener on the list. I don't necessarily know that there's going to be a list, and I therefore can't add a listener on it. I'm writing a container (which may contain a list), and I need to catch "touchstart" and "touchmove" events that happen within the container, regardless of on which widget in the container (possibly deeply) the event was initiated. The problem is that I *am* receiving the event in my container's event handler as I should, but I need to figure out in which of my container's immediate children the event occurred, so I need to walk up the layout tree until I reach one of those children. Derrell ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
