Simple artifact sharing
Find a file
Armin Friedl aad91c21f6
Fix drag leave event over child elements
When dragging over a child element of the dropzone, a drag leave event from the
dropzone is fired. This caused the handleDragLeave function to be called.

Before the dragLeave event on the dropzone is fired, first a dragEnter event on
the child is fired. By keeping a counter in the state, a premature dragLeave
effect in the dropzone is prevented.

The dragCount is kept in a local variable in handleOnDragLeave because only the
render method gets the most recent state. Reading from state in a regular
function will see an old value (and hence think it is still dragged over even
though the counter dropped to 0).
2020-05-22 22:31:19 +02:00
service/fling Implement auth code setting and reset of settings 2020-05-22 21:44:28 +02:00
web/fling Fix drag leave event over child elements 2020-05-22 22:31:19 +02:00
.gitignore Fling Genesis 2020-05-16 19:19:16 +02:00