Add comments
This commit is contained in:
parent
f05af08a2c
commit
e5dcb007c6
@ -69,6 +69,9 @@ L.Draggable = L.Evented.extend({
|
||||
},
|
||||
|
||||
_onDown: function (e) {
|
||||
// Ignore simulated events, since we handle both touch and
|
||||
// mouse explicitly; otherwise we risk getting duplicates of
|
||||
// touch events, see #4315.
|
||||
if (e._simulated) { return; }
|
||||
|
||||
this._moved = false;
|
||||
@ -102,6 +105,9 @@ L.Draggable = L.Evented.extend({
|
||||
},
|
||||
|
||||
_onMove: function (e) {
|
||||
// Ignore simulated events, since we handle both touch and
|
||||
// mouse explicitly; otherwise we risk getting duplicates of
|
||||
// touch events, see #4315.
|
||||
if (e._simulated) { return; }
|
||||
|
||||
if (e.touches && e.touches.length > 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user