[ https://issues.apache.org/jira/browse/FLEX-27797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Kessler closed FLEX-27797. ------------------------------- > Spark Datagrid double click is fired even when you make the first and second > click in different points (rows) ! > --------------------------------------------------------------------------------------------------------------- > > Key: FLEX-27797 > URL: https://issues.apache.org/jira/browse/FLEX-27797 > Project: Apache Flex > Issue Type: Bug > Components: Spark: DataGrid > Affects Versions: Adobe Flex SDK 4.5.1 (Release) > Environment: Affected OS(s): Windows > Affected OS(s): Windows 7 > Language Found: English > Reporter: Adobe JIRA > Assignee: Mark Kessler > Fix For: Adobe Flex SDK Next > > > Steps to reproduce: > 1. Put a spark Datagrid with data > 2. Set gridDoubleClick function and doubleClickEnabled to true > 3. make the first click in a row, and the second in another row, the > doubleClick is fired anyway. > > Actual Results: > Double click is fired > > Expected Results: > Double click should not fire if you make the two clicks in differentes > positions (or rows at least) > > Workaround (if any): > Register a click event, use an external var to register the item clicked in > the first item, and then check that in your doubleclick handler. > Or don't use doubleClick handler and user a click handler like this: > var lastTime:Date = new Date(0); > function OnClickHandler(event:Event):void { > if ((new Date()).time - lastTime.time < 250) { > return; > } > lastTime = new Date(); > ... > } -- 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