mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +01:00
fix drag & drop
This commit is contained in:
parent
023c416b5d
commit
b5e0d809c7
@ -102,6 +102,10 @@ class App extends React.Component {
|
|||||||
window.removeEventListener('keydown', this.onKeyDown);
|
window.removeEventListener('keydown', this.onKeyDown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dragOver = event => {
|
||||||
|
event.preventDefault();
|
||||||
|
};
|
||||||
|
|
||||||
onDrop = async event => {
|
onDrop = async event => {
|
||||||
const { openSketch, addImage } = this.props;
|
const { openSketch, addImage } = this.props;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user