Removed smooth scrolling, does not work in other browsers than FF

このコミットが含まれているのは:
Shpuld Shpuldson 2017-04-12 18:47:47 +03:00
コミット 3f477986cf
1個のファイルの変更2行の追加10行の削除

ファイルの表示

@ -104,18 +104,10 @@ const Status = {
if(this.status.id == newfocus) {
let rect = this.$el.getBoundingClientRect()
if(rect.top < 100)
window.scrollBy({
left: 0,
top: rect.top - 200,
behavior: 'smooth'
})
window.scrollBy(0, rect.top - 200)
// will be useful when scrolling down to replies or root posts is in
else if(rect.bottom > window.innerHeight - 100)
window.scrollBy({
left: 0,
top: rect.bottom + 200,
behavior: 'smooth'
})
window.scrollBy(0, rect.bottom + 200)
}
}
}