Skip to content

Commit

Permalink
Merge pull request #73 from astridx/L.Browser.touch
Browse files Browse the repository at this point in the history
L.Browser.touch_L.Browser.mobile
  • Loading branch information
MrMufflon authored Jan 30, 2020
2 parents 54cae63 + 63402a3 commit 971d6b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/L.Control.Elevation.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ L.Control.Elevation = L.Control.extend({
.style("stroke", "none")
.style("pointer-events", "all");

if (L.Browser.touch) {
if (L.Browser.mobile) {

background.on("touchmove.drag", this._dragHandler.bind(this)).
on("touchstart.drag", this._dragStartHandler.bind(this)).
Expand Down Expand Up @@ -287,7 +287,7 @@ L.Control.Elevation = L.Control.extend({
//Makes this work on IE10 Touch devices by stopping it from firing a mouseout event when the touch is released
container.setAttribute('aria-haspopup', true);

if (!L.Browser.touch) {
if (!L.Browser.mobile) {
L.DomEvent
.disableClickPropagation(container);
//.disableScrollPropagation(container);
Expand All @@ -308,7 +308,7 @@ L.Control.Elevation = L.Control.extend({
link.href = '#';
link.title = this.options.controlButton.title;

if (L.Browser.touch) {
if (L.Browser.mobile) {
L.DomEvent
.on(link, 'click', L.DomEvent.stop)
.on(link, 'click', this._expand, this);
Expand Down

0 comments on commit 971d6b8

Please sign in to comment.