From 2dcc4a3f04c01157b1a56b0703c5bd2ff430f9e5 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sat, 21 Jun 2014 16:28:10 +0200 Subject: [PATCH] Match platform specifics for dragDelay of text On Mac we keep it at 150ms. On other platforms it either does not exist or at most it's very small. This fixes issue #1879 --- lib/ace/mouse/mouse_handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/mouse/mouse_handler.js b/lib/ace/mouse/mouse_handler.js index 9897290c..ce88eb81 100644 --- a/lib/ace/mouse/mouse_handler.js +++ b/lib/ace/mouse/mouse_handler.js @@ -192,7 +192,7 @@ var MouseHandler = function(editor) { config.defineOptions(MouseHandler.prototype, "mouseHandler", { scrollSpeed: {initialValue: 2}, - dragDelay: {initialValue: 150}, + dragDelay: {initialValue: (useragent.isMac ? 150 : 0)}, dragEnabled: {initialValue: true}, focusTimout: {initialValue: 0}, tooltipFollowsMouse: {initialValue: true}