Skip to content

Commit

Permalink
Fix maxTop bound on mouseMove
Browse files Browse the repository at this point in the history
  • Loading branch information
Laur-lct committed Apr 12, 2016
1 parent 281de99 commit d91b129
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 @@ -1398,7 +1397,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 d91b129

Please sign in to comment.