Remove mouseout binding on up

This commit is contained in:
Tom MacWright 2013-06-24 14:45:29 -04:00
parent e614b60d2b
commit 95abf5a385

View File

@ -173,6 +173,8 @@ L.Draggable = L.Class.extend({
.off(document, L.Draggable.END[i], this._onUp);
}
L.DomEvent.off(document, 'mouseout', this._onUp);
if (this._moved) {
// ensure drag is not fired after dragend
L.Util.cancelAnimFrame(this._animRequest);