diff options
| author | Shpuld Shpuldson <shpuld@gmail.com> | 2017-04-12 18:47:47 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shpuld@gmail.com> | 2017-04-12 18:47:47 +0300 |
| commit | 3f477986cfe3dcf0077f45c263b152d0b96cb0f0 (patch) | |
| tree | 9de1bcf646776a34edeb8c835bb5e4ac2fa36461 /src | |
| parent | a675cfbb3ebd9c4c093a4535cc5cd0e672a45500 (diff) | |
Removed smooth scrolling, does not work in other browsers than FF
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/status/status.js | 12 |
1 files changed, 2 insertions, 10 deletions
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) } } } |
