Don't set lastDragValue when the cursor coordinate is 0 (Chrome bug)

Fixes #265.
pull/337/merge
Thibaut Courouble 9 years ago
parent b14fc9438a
commit a24a2ce1fe

@ -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()

Loading…
Cancel
Save