Dual monitor sidebar stretch issue

Using window.innerWidth instead of window.screenX for dual monitors
pull/337/head
Abel 9 years ago
parent 58da912a7d
commit 1577d1d912

@ -47,7 +47,7 @@ class app.views.Resizer extends app.View
return
onDragEnd: (event) =>
value = event.pageX or (event.screenX - window.screenX)
value = event.pageX or (event.screenX - window.innerWidth)
if @lastDragValue and not (@lastDragValue - 5 < value < @lastDragValue + 5) # https://github.com/Thibaut/devdocs/issues/265
value = @lastDragValue
@resize(value, true)

Loading…
Cancel
Save