Tweak resizer onDrag handler

pull/309/head
Thibaut 9 years ago
parent 96abd6756e
commit 6da6d5e2cd

@ -39,10 +39,10 @@ class app.views.Resizer extends app.View
return
onDrag: (event) =>
return if @lastDrag and @lastDrag > Date.now() - 50
value = event.pageX
@lastDrag = Date.now()
@lastDragValue = value
return if @lastDrag and @lastDrag > Date.now() - 50
@lastDrag = Date.now()
@resize(value, false)
return

Loading…
Cancel
Save