royale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [royale-asjs] javeiga-iest opened a new issue #886: FileBrowser.as always dispatches cancel event.
Date Mon, 13 Jul 2020 09:12:06 GMT

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:
users@infra.apache.org



Mime
View raw message