Skip to content

Commit

Permalink
Reseting entered
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Apr 5, 2023
1 parent 7e9e428 commit 6bc486a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions panel/src/panel/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export default () => {
*/
dragexit(e) {
this.prevent(e);
this.entered = null;
this.emit("dragexit", e);
},

Expand All @@ -109,6 +110,7 @@ export default () => {
this.prevent(e);

if (this.entered === e.target) {
this.entered = null;
this.emit("dragleave", e);
}
},
Expand All @@ -134,6 +136,7 @@ export default () => {
*/
drop(e) {
this.prevent(e);
this.entered = null;
this.emit("drop", e);
},

Expand Down

0 comments on commit 6bc486a

Please sign in to comment.