mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Prevent default drag and drop of background tile images if interaction handlers don't prevent dragging for some reason
This commit is contained in:
@@ -3993,6 +3993,8 @@ img.tile {
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
|
||||
-webkit-user-drag: none;
|
||||
|
||||
opacity: 0;
|
||||
|
||||
-webkit-transition: opacity 200ms linear;
|
||||
|
||||
@@ -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]; })
|
||||
|
||||
Reference in New Issue
Block a user