Skip to content

Commit

Permalink
fix image marker drag handling for IE and Firefox (#7799)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs09g authored and ryanhamley committed Feb 19, 2019
1 parent c58b24c commit 1d7fefd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ export default class Marker extends Evented {
}

this._element.classList.add('mapboxgl-marker');

this._element.addEventListener('dragstart', (e: DragEvent) => {
e.preventDefault();
});
this._popup = null;
}

Expand Down

0 comments on commit 1d7fefd

Please sign in to comment.