diff --git a/src/components/status/status.js b/src/components/status/status.js index b06bc08d..11e4430f 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -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) } } }