[
https://issues.apache.org/jira/browse/FLEX-21359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Kessler resolved FLEX-21359.
---------------------------------
Resolution: Not A Problem
Tested using below app. Cannot reproduce bug with latest Flex-SDK.
<?xml version="1.0" encoding="utf-8"?>
<!---
Test application
-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Script>
<![CDATA[
import mx.events.ListEvent;
import mx.collections.ArrayCollection;
[Bindable]
private var __dgData:ArrayCollection = new ArrayCollection([
{label:"AA", data:"AAA"},
{label:"BB", data:"BBB"},
{label:"CC", data:"CCC"},
{label:"DD", data:"DDD"},
{label:"EE", data:"EEE"},
{label:"FF", data:"FFF"},
{label:"GG", data:"GGG"}]);
protected function onItemClick( event:ListEvent ):void
{
ta.text += "itemClick\n";
}
protected function onItemDoubleClick( event:ListEvent ):void
{
ta.text += "itemDoubleClick\n\n";
}
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout horizontalAlign="center" verticalAlign="middle"
gap="0" />
</s:layout>
<mx:DataGrid id="dg" dataProvider="{__dgData}" width="200"
allowMultipleSelection="true" doubleClickEnabled="true"
itemClick="onItemClick(event)"
itemDoubleClick="onItemDoubleClick(event)">
</mx:DataGrid>
<mx:TextArea id="ta" height="400" width="400"/>
</s:Application>
> ItemDoubleClick event not firing
> --------------------------------
>
> Key: FLEX-21359
> URL: https://issues.apache.org/jira/browse/FLEX-21359
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: DataGrid
> Affects Versions: Adobe Flex SDK 3.3 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Browser: Firefox 3.x
> Language Found: English
> Reporter: Adobe JIRA
> Assignee: Mark Kessler
>
> Steps to reproduce:
> 1. Import attached test case and run it.
> 2. Double click a row of the DataGrid as close to the edge between row as
> possible. I think you have to be within 1 or 2 pixels of the edge.
>
> Actual Results:
> You will see two ItemClick events.
>
> Expected Results:
> One ItemClick event, and one ItemDoubleClick event.
>
> Workaround (if any):
> We're not using one, but I suppose you could create a Timer, and if you get
> two ItemClicks within... 300ms, then dispatch an ItemDoubleClick.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira