From 9922a600c3cc88246729cb13cbd198e4729b77da Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sat, 23 Oct 2010 11:55:01 -0400 Subject: [PATCH] prevent highlighting of text on page --- dygraph.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dygraph.js b/dygraph.js index 650d317..483cf7e 100644 --- a/dygraph.js +++ b/dygraph.js @@ -843,6 +843,7 @@ Dygraph.prototype.createDragInterface_ = function() { // Track the beginning of drag events Dygraph.addEvent(this.mouseEventElement_, 'mousedown', function(event) { + event.preventDefault(); // prevents mouse drags from selecting page text. px = Dygraph.findPosX(self.canvas_); py = Dygraph.findPosY(self.canvas_); dragStartX = getX(event); -- 2.7.4