Skip to content

Commit

Permalink
Fixed a bug related to panning getting stuck after releasing the mous…
Browse files Browse the repository at this point in the history
…e over an iframe or flash, closed Leaflet#64 and Leaflet#166
  • Loading branch information
mourner committed Sep 20, 2011
1 parent 2954a42 commit a7d2b16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Leaflet Changelog

#### General bugfixes

* Fixed a bug where map panning would stuck forever after releasing the mouse over an iframe or a flash object (thanks to [@sten82](https://github.com/sten82)). [#297](https://github.com/CloudMade/Leaflet/pull/297) [#64](https://github.com/CloudMade/Leaflet/issues/64)
* Fixed a bug where mouse zoom worked incorrectly if map is inside scrolled container (partially by [@chrillo](https://github.com/chrillo)). [#206](https://github.com/CloudMade/Leaflet/issues/206)
* Fixed a bug where it was possible to add the same listener twice. [#281](https://github.com/CloudMade/Leaflet/issues/281)
* Fixed a bug where `Marker` `setIcon` was not working properly (by [@marphi](https://github.com/marphi)). [#218](https://github.com/CloudMade/Leaflet/pull/218)
Expand Down
3 changes: 2 additions & 1 deletion src/dom/Draggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ L.Draggable = L.Class.extend({
el.className += ' leaflet-active';
}

this._moved = false;
if (this._moved) { return; }

if (!L.Browser.touch) {
L.DomUtil.disableTextSelection();
Expand Down Expand Up @@ -105,6 +105,7 @@ L.Draggable = L.Class.extend({

if (this._moved) {
this.fire('dragend');
this._moved = false;
}
},

Expand Down

0 comments on commit a7d2b16

Please sign in to comment.