From d91b12932ed45fc48fc630a3dc77eec4f34f79c4 Mon Sep 17 00:00:00 2001 From: Laur-lct Date: Tue, 12 Apr 2016 15:56:34 +0200 Subject: [PATCH] Fix maxTop bound on mouseMove --- src/angular-gridster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/angular-gridster.js b/src/angular-gridster.js index 174f49c5..e2ef4fbf 100755 --- a/src/angular-gridster.js +++ b/src/angular-gridster.js @@ -1337,7 +1337,6 @@ mOffY = 0, minTop = 0, - maxTop = 9999, minLeft = 0, realdocument = $document[0]; @@ -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;