javeiga-iest opened a new issue #886:
URL: https://github.com/apache/royale-asjs/issues/886


   **Some Context**
   Depending on the browser, a focus, key or mouse handler is triggered ... 
when the file selection form is closed.
   Then maybeCancel function is called with a timeout of 100ms:
   
   
![image](https://user-images.githubusercontent.com/55754204/87284780-0d759f80-c4f7-11ea-9732-86b17dda9a4f.png)
   
   The maybeCancel function, analyzes if there are selected files, if there are 
no files, interprets it as that there has been a cancellation (since we cannot 
get the cancel event directly):
   
![image](https://user-images.githubusercontent.com/55754204/87285071-5decfd00-c4f7-11ea-83dd-22a206e300bb.png)
   
   **Issue**
   When calling maybeCancel function, the length of the file list is always 0, 
so cancel event is always dispatched.
   
   **Our solution**
   Increasing the response time of the maybeCancel function to 150ms solves the 
problem.
   
![image](https://user-images.githubusercontent.com/55754204/87286366-12d3e980-c4f9-11ea-8c2b-7deba1897c5f.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to