-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
Hi,
Just got a comment on my application from a user. The map crashes if the first interaction is a gesture (such as zooming with 2 fingers), it works well if you move (pan) the map first.
I can reproduce this bug with the Windows 8 simulator (I don't have a touch device), the error is in
_onDragEnd: function (e) {
var map = this._map,
options = map.options,
delay = +new Date() - this._lastTime,
noInertia = !options.inertia || delay > options.inertiaThreshold || !this._positions[0];
map.fire('dragend', e);
Basically, this._positions is undefined and the noInertia check produce a NPE when trying to access this._positions[0].
The _onDragStart function is never called, even if the hook is on, not sure why, will investigate.
I don't know if that's also the case with other browsers.
Fabien