From: Dan Vanderkam Date: Tue, 2 Jul 2013 04:06:51 +0000 (-0400) Subject: constrain annotation movement X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=refs%2Fheads%2Fhairline;p=dygraphs.git constrain annotation movement --- diff --git a/extras/super-annotations.js b/extras/super-annotations.js index a63d8eb..dbe62d1 100644 --- a/extras/super-annotations.js +++ b/extras/super-annotations.js @@ -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