From a24a2ce1fe85f0938b05e951fe17ecc8bd2becb2 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 30 Jan 2016 11:23:06 -0500 Subject: [PATCH] Don't set lastDragValue when the cursor coordinate is 0 (Chrome bug) Fixes #265. --- assets/javascripts/views/layout/resizer.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/javascripts/views/layout/resizer.coffee b/assets/javascripts/views/layout/resizer.coffee index 4ddd11ff..60e2adf4 100644 --- a/assets/javascripts/views/layout/resizer.coffee +++ b/assets/javascripts/views/layout/resizer.coffee @@ -40,6 +40,7 @@ class app.views.Resizer extends app.View onDrag: (event) => value = event.pageX + return unless value > 0 @lastDragValue = value return if @lastDrag and @lastDrag > Date.now() - 50 @lastDrag = Date.now()