[VideoOverlay] Fix adding css classes (#5785)
* fix VideoOverlay css classes * fix eslint errors
This commit is contained in:
parent
811cc7cf9c
commit
ca6025c8bd
@ -39,8 +39,8 @@ export var VideoOverlay = ImageOverlay.extend({
|
|||||||
var wasElementSupplied = this._url.tagName === 'VIDEO';
|
var wasElementSupplied = this._url.tagName === 'VIDEO';
|
||||||
var vid = this._image = wasElementSupplied ? this._url : DomUtil.create('video');
|
var vid = this._image = wasElementSupplied ? this._url : DomUtil.create('video');
|
||||||
|
|
||||||
DomUtil.addClass('leaflet-image-layer');
|
DomUtil.addClass(vid, 'leaflet-image-layer');
|
||||||
if (this._zoomAnimated) { DomUtil.addClass('leaflet-zoom-animated'); }
|
if (this._zoomAnimated) { DomUtil.addClass(vid, 'leaflet-zoom-animated'); }
|
||||||
|
|
||||||
vid.onselectstart = Util.falseFn;
|
vid.onselectstart = Util.falseFn;
|
||||||
vid.onmousemove = Util.falseFn;
|
vid.onmousemove = Util.falseFn;
|
||||||
|
Loading…
Reference in New Issue
Block a user