This way also works:

list.addListener("touchstart", function(evt) {
    console.log("evt:",evt.getCurrentTarget());
  }, this);

Greetz Christopher

_____________________________________
Von: Derrell Lipman [[email protected]]
Gesendet: Donnerstag, 14. Juni 2012 22:16
An: qooxdoo Development
Betreff: [qooxdoo-devel] mobile: layout parent is null

I am trying to respond to touchstart and touchmove events on a container. When 
I receive a touchstart or touchmove event, I start with widget=e.getTarget() 
and walk up the the layout parent chain with widget=widget.getLayoutParent() 
until I find a container on which I which I can operate.

I'm finding, however, that if I add a qx.ui.mobile.list.List() to one of my 
containers, I get a parent of null during that walk, because e.getTarget() 
returns a qx.ui.mobile.container.Composite whose parent is a 
qx.ui.mobile.list.renderer.Default, which has a parent of null. This Default 
renderer is not properly in the layout chain!

If the touchstart begins on a list item, how can I figure out which container 
the list is in?

Thanks,

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

Reply via email to