Created
November 5, 2012 19:01
-
-
Save wvl/4019617 to your computer and use it in GitHub Desktop.
Settable bounding box for DragDrop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vendor/js/drag-drop.js b/vendor/js/drag-drop.js | |
index d0e14de..cb43c11 100644 | |
--- a/vendor/js/drag-drop.js | |
+++ b/vendor/js/drag-drop.js | |
@@ -162,8 +162,8 @@ | |
var posX = startX + offsetX; | |
var posY = startY + offsetY; | |
// Enforce any bounding box | |
- if (options.boundingBox) { | |
- var box = options.boundingBox; | |
+ if (binding.boundingBox) { | |
+ var box = binding.boundingBox; | |
var minX, maxX, minY, maxY; | |
// Bound inside offset parent | |
if (box === 'offsetParent') { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment