From b8bfbc5f6afcd10a7354e20ef308fc6710b24338 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 25 Oct 2012 11:40:26 +0100 Subject: [PATCH] Clear mouseDown flag on scroll of CM Better solution to what I had previously implemented --- editor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor.php b/editor.php index 2632174..74940f7 100644 --- a/editor.php +++ b/editor.php @@ -173,6 +173,9 @@ function createNewCMInstance(num) { }; lastKeyCode = e.keyCode; }, + onScroll: function() { + top.ICEcoder.mouseDown=false; + }, onGutterClick: !fileName || (fileName && fileName.indexOf(".js") == -1 && fileName.indexOf(".coffee") == -1 && fileName.indexOf(".php") && fileName.indexOf(".rb") == -1) ? codeFoldTag : codeFoldBrace, extraKeys: { "Tab": function(cm) {CodeMirror.commands[top.ICEcoder.tabsIndent ? "defaultTab" : "insertTab"](cm);},