constrain annotation movement hairline
authorDan Vanderkam <danvdk@gmail.com>
Tue, 2 Jul 2013 04:06:51 +0000 (00:06 -0400)
committerDan Vanderkam <danvdk@gmail.com>
Tue, 2 Jul 2013 04:06:51 +0000 (00:06 -0400)
extras/super-annotations.js

index a63d8eb..dbe62d1 100644 (file)
@@ -146,7 +146,8 @@ annotations.prototype.createAnnotation = function(a) {
       a.isDragging = false;
       self.updateAnnotationDivPositions();
     },
-    'axis': 'y'
+    'axis': 'y',
+    'containment': 'parent'
   });
 
   // TODO(danvk): use 'on' instead of delegate/dblclick