From d4c02dfb73cda0b852f25720776bb151802407ee Mon Sep 17 00:00:00 2001 From: abe33 Date: Tue, 31 Mar 2015 11:18:01 +0200 Subject: [PATCH] :bug: Fix minimap dragging stopped at the end of the canvas Fixes #306 --- lib/minimap-element.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/minimap-element.coffee b/lib/minimap-element.coffee index cec0d629..ed6349ef 100644 --- a/lib/minimap-element.coffee +++ b/lib/minimap-element.coffee @@ -502,12 +502,12 @@ class MinimapElement extends HTMLElement document.body.addEventListener('mousemove', mousemoveHandler) document.body.addEventListener('mouseup', mouseupHandler) - document.body.addEventListener('mouseout', mouseupHandler) + document.body.addEventListener('mouseleave', mouseupHandler) @dragSubscription = new Disposable => document.body.removeEventListener('mousemove', mousemoveHandler) document.body.removeEventListener('mouseup', mouseupHandler) - document.body.removeEventListener('mouseout', mouseupHandler) + document.body.removeEventListener('mouseleave', mouseupHandler) # Internal: The method called during the drag gesture. #