Skip to content

Commit 3fe1878

Browse files
author
Jason Schindler
committed
Adds prevent check as noted in issue #295 (#295)
1 parent 7a84a3d commit 3fe1878

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/angular-gridster.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@
11341134
};
11351135

11361136
// IE pointer model
1137-
if (target.msSetPointerCapture) {
1137+
if (target.msSetPointerCapture && prevent) {
11381138
target.msSetPointerCapture(pointerId);
11391139
} else if (theEvtObj.type === 'mousedown' && numberOfKeys(lastXYById) === 1) {
11401140
if (useSetReleaseCapture) {
@@ -1425,7 +1425,7 @@
14251425

14261426
var maxLeft = gridster.curWidth - 1;
14271427
var maxTop = gridster.curRowHeight * gridster.maxRows - 1;
1428-
1428+
14291429
// Get the current mouse position.
14301430
mouseX = e.pageX;
14311431
mouseY = e.pageY;

0 commit comments

Comments
 (0)