Skip to content

Commit

Permalink
Merge pull request #397 from Laur-lct/patch-1
Browse files Browse the repository at this point in the history
Fix maxTop bound on mouseMove
  • Loading branch information
danomatic committed May 18, 2016
2 parents 3a0784a + d91b129 commit 7a84a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/angular-gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,6 @@
mOffY = 0,

minTop = 0,
maxTop = 9999,
minLeft = 0,
realdocument = $document[0];

Expand Down Expand Up @@ -1425,7 +1424,8 @@
}

var maxLeft = gridster.curWidth - 1;

var maxTop = gridster.curRowHeight * gridster.maxRows - 1;

// Get the current mouse position.
mouseX = e.pageX;
mouseY = e.pageY;
Expand Down

0 comments on commit 7a84a3d

Please sign in to comment.