Permalink
Browse files

#111 Fixed an issue when mouse button was released outside of the con…

…tainer
  • Loading branch information...
1 parent 58b3b3a commit 5277507abd6e48560fd379932b630dfaf18dbf2f @bjornd committed Oct 1, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/world-map.js
View
@@ -259,9 +259,10 @@ jvm.WorldMap.prototype = {
oldPageX = e.pageX;
oldPageY = e.pageY;
return false;
- }).mouseup(function(){
+ })
+
+ $('body').mouseup(function(){
mouseDown = false;
- return false;
});
if (this.params.zoomOnScroll) {

0 comments on commit 5277507

Please sign in to comment.