Don't hide source element if drag action is too fast

This commit is contained in:
Max Hoffmann 2017-10-07 19:55:14 -04:00
parent 8eae84c07c
commit aca0fbedd1
No known key found for this signature in database
GPG Key ID: 1DFA4D13DD27A676

View File

@ -228,6 +228,7 @@ export default class Draggable {
const source = this.source;
setTimeout(() => {
if (!this.dragging) { return; }
source.style.display = 'none';
}, 0);