I have an explanation which is not really a solution.  Basically the behavior of the mouse is a little different that the keyboard.  As you noticed, when the mouse presses down an animation starts to show the selection.  I believe that event processing is deferred until after that animation finishes.  After the mouse is released the change event is fired and binding updates.  The keyboard doesn't have the same animation so it appears faster.  If you hold down the mouse on a selection for a moment, then release, you'll see the update happens very quickly (about the same as the keyboard click).

 

I'll file a usability bug that points out the difference.  I'm not sure what the cost would be to address it (maybe you can't have the selection animation if you want a fast response).

 

Matt

 

-----Original Message-----
From: Marcos Neves [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 6:53 AM
To: [email protected]
Subject: RE: [flexcoders] List selection delay

 

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
backgroundColor="#EEEEEE">
<mx:Text>
      <mx:text>
            First select the list to update the inputs below.
            Change the selected item using the keyboard.
            See that the inputs are updated instantaneously.
            Now using a quick mouse click, change the selection.
            See that it takes about half second to update the inputs.
      </mx:text>
</mx:Text>
<mx:List id="list" labelField="name">
      <mx:dataProvider>
            <mx:Array>
                  <mx:Object name="marcos" age="23"/>
                  <mx:Object name="Edu" age="21"/>
                  <mx:Object name="Ligia" age="19"/>
            </mx:Array>
      </mx:dataProvider>
</mx:List>
<mx:TextInput text="{list.selectedItem.name}"/>
<mx:TextInput text="{list.selectedItem.age}"/>
</mx:Application>

At 14:21 3/6/2004 +0100, you wrote:
Marco,

Sounds a bit strange; perhaps you can post a small bit of code
that demonstrates your problem ?

Best,

Steven

--
Steven Webster
Technical Director
iteration::two

> -----Original Message-----
> From: Marcos Neves [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2004 14:05
> To: [email protected]
> Subject: [flexcoders] List selection delay
>
>
> Suppose a TextInput binded to a List. When I select an item from the list,
> the input is updated immediatly, right? wrong :(





Yahoo! Groups Links



 



Reply via email to