Prevent default drag and drop of background tile images if interaction handlers don't prevent dragging for some reason

This commit is contained in:
Quincy Morgan
2020-05-21 14:06:28 -04:00
parent 67bd93b14c
commit 640d22b298
2 changed files with 3 additions and 0 deletions

View File

@@ -3993,6 +3993,8 @@ img.tile {
-ms-user-select: none;
user-select: none;
-webkit-user-drag: none;
opacity: 0;
-webkit-transition: opacity 200ms linear;

View File

@@ -198,6 +198,7 @@ export function rendererTileLayer(context) {
image.enter()
.append('img')
.attr('class', 'tile')
.attr('draggable', 'false')
.style('width', _tileSize + 'px')
.style('height', _tileSize + 'px')
.attr('src', function(d) { return d[3]; })