:: Forum >>
ui.List
The default functionality for ui.List is to select an item on mouseup.
How would you change it so that mousedown selects an item?
Eric Juvet
Saturday, April 26, 2008
You can modify the keyboard/mouse controller to use onItemMouseDown event instead of onItemClicked ( source/lib/ui/_single.js ) or just add the event on top of the existing list -
list.onItemClicked = function(){return 1};
list.onItemMouseDown = function(event, i){
this.raiseEvent("selectClickedItem", event, i);
};
Alex (ActiveWidgets)
Monday, April 28, 2008
This topic is archived.
Back to support forum
Forum search