From 3f477986cfe3dcf0077f45c263b152d0b96cb0f0 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Wed, 12 Apr 2017 18:47:47 +0300 Subject: [PATCH] Removed smooth scrolling, does not work in other browsers than FF --- src/components/status/status.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/status/status.js b/src/components/status/status.js index b06bc08d87..11e4430fc8 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) } } }