improve drag performance

This commit is contained in:
gabrielburnworth 2017-09-15 18:34:50 -07:00
parent 9931dcdd97
commit 716ed6d1e1
2 changed files with 8 additions and 1 deletions

View file

@ -23,8 +23,14 @@
width: 100%;
height: 100%;
overflow: visible;
text {
pointer-events: none;
}
text::selection {
background: none;
}
}
}
#drop-area-svg {
width: 100%;

View file

@ -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