Skip to content

Commit

Permalink
Merge pull request #2002 from danzel/master
Browse files Browse the repository at this point in the history
MsTouch needs preventDefault
  • Loading branch information
mourner committed Aug 28, 2013
2 parents 62b23b4 + dbced20 commit 9e0c62a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/dom/DomEvent.MsTouch.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ L.extend(L.DomEvent, {

var cb = function (e) {

L.DomEvent.preventDefault(e);

var alreadyInArray = false;
for (var i = 0; i < touches.length; i++) {
if (touches[i].pointerId === e.pointerId) {
Expand Down
3 changes: 1 addition & 2 deletions src/dom/Draggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ L.Draggable = L.Class.extend({

if (e.shiftKey || ((e.which !== 1) && (e.button !== 1) && !e.touches)) { return; }

L.DomEvent
.stopPropagation(e);
L.DomEvent.stopPropagation(e);

if (L.Draggable._disabled) { return; }

Expand Down

0 comments on commit 9e0c62a

Please sign in to comment.