History

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

Fixes #265.

Thibaut Courouble committed 10 years ago

Commit a24a2ce1 parent b14fc941 file · +1 −0Browse files

Unified · Split

assets/javascripts/views/layout/resizer.coffee+1−0
@@ -40,6 +40,7 @@ class app.views.Resizer extends app.View · 39 unmodified lines
40 40
41 onDrag: (event) =>41 onDrag: (event) =>
42 value = event.pageX42 value = event.pageX
43 return unless value > 0
43 @lastDragValue = value44 @lastDragValue = value
44 return if @lastDrag and @lastDrag > Date.now() - 5045 return if @lastDrag and @lastDrag > Date.now() - 50
45 @lastDrag = Date.now()46 @lastDrag = Date.now()