We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93fb99f commit eda0e8aCopy full SHA for eda0e8a
src/ChatWindow/Room.vue
@@ -417,9 +417,11 @@ export default {
417
this.hideOptions = true
418
setTimeout(() => {
419
if (!e.target) return
420
- this.scrollIcon =
421
- e.target.scrollHeight > 500 &&
422
- e.target.scrollHeight - e.target.scrollTop > 1000
+
+ const { scrollHeight, clientHeight, scrollTop } = e.target
+ const bottomScroll = scrollHeight - clientHeight - scrollTop
423
424
+ this.scrollIcon = bottomScroll > 1000
425
}, 200)
426
})
427
0 commit comments