From a62341b548ad5d4530cedb167571baf94d069775 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 7 Oct 2015 15:41:52 +0200 Subject: [PATCH] Avoid capturing this when handling dragging --- src/text-editor-component.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-editor-component.coffee b/src/text-editor-component.coffee index ef1711a04..68a29ab0f 100644 --- a/src/text-editor-component.coffee +++ b/src/text-editor-component.coffee @@ -563,7 +563,7 @@ class TextEditorComponent @sampleBackgroundColors() @remeasureCharacterWidths() - handleDragUntilMouseUp: (dragHandler) => + handleDragUntilMouseUp: (dragHandler) -> dragging = false lastMousePosition = {} animationLoop = =>