Skip to content
Snippets Groups Projects
Commit 3f477986 authored by Shpuld Shpuldson's avatar Shpuld Shpuldson
Browse files

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

parent a675cfbb
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment