FilesApp mount crostini immediately for drag and drop
Currently FileTransferController starts a 2s timer to change to a directory if you drag and then hover over a root. This happens on the dragenter event. The dragleave event will cancel the timer if it has not already fired. For crostini, we want to change to the directory immediately. Test fires dragenter and then dragleave events immediately after each other. Usually this would cause no change if the events are received within 2s of each other. We test for crostini that even if these events are fired right after each other, we still change directory. Bug: 846917 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I4f0f463ff1c4bc164328a2764ff235ee399d6e4c Reviewed-on: https://chromium-review.googlesource.com/1096801 Commit-Queue: Joel Hockey <joelhockey@chromium.org> Reviewed-by:Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#566693}
Showing
Please register or sign in to comment