Use pageX instead of clientX

This commit is contained in:
Thibaut 2015-11-01 17:34:46 -05:00
parent edb09cc2df
commit a23e3c02a4

View file

@ -41,9 +41,9 @@ class app.views.Resizer extends app.View
onDrag: (event) =>
return if @lastDrag and @lastDrag > Date.now() - 50
@lastDrag = Date.now()
@resize(event.clientX, false)
@resize(event.pageX, false)
return
onDragEnd: (event) =>
@resize(event.clientX or (event.screenX - window.screenX), true)
@resize(event.pageX or (event.screenX - window.screenX), true)
return