improve drag performance
This commit is contained in:
parent
9931dcdd97
commit
716ed6d1e1
|
@ -23,8 +23,14 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: visible;
|
||||
text {
|
||||
pointer-events: none;
|
||||
}
|
||||
text::selection {
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#drop-area-svg {
|
||||
width: 100%;
|
||||
|
|
|
@ -176,7 +176,8 @@ export class GardenMap extends
|
|||
onDragEnter={this.handleDragEnter}
|
||||
onDragOver={this.handleDragOver}
|
||||
onMouseLeave={this.endDrag}
|
||||
onDragEnd={this.endDrag}>
|
||||
onDragEnd={this.endDrag}
|
||||
onDragStart={(e) => e.preventDefault()}>
|
||||
<svg
|
||||
id="map-background-svg">
|
||||
<MapBackground
|
||||
|
|
Loading…
Reference in a new issue