Skip to content

Commit

Permalink
更新版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
xfgryujk committed Oct 13, 2019
1 parent bb1acae commit 9565c52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions frontend/src/components/ChatRenderer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ import LegacyPaidMessage from './LegacyPaidMessage.vue'
import PaidMessage from './PaidMessage.vue'
import * as constants from './constants'
// const CHAT_SMOOTH_ANIMATION_TIME_MS = 84
const SCROLLED_TO_BOTTOM_EPSILON = 15
export default {
name: 'ChatRenderer',
components: {
Expand Down Expand Up @@ -83,8 +86,8 @@ export default {
this.$refs.scroller.scrollTop = this.$refs.scroller.scrollHeight
},
onScroll() {
this.canAutoScroll = Math.abs(this.$refs.scroller.scrollHeight - this.$refs.scroller.scrollTop
- this.$refs.scroller.clientHeight) < 2
let scroller = this.$refs.scroller
this.canAutoScroll = scroller.scrollHeight - scroller.scrollTop - scroller.clientHeight < SCROLLED_TO_BOTTOM_EPSILON
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import aiohttp

VERSION = 'v1.2.1'
VERSION = 'v1.2.2'


async def check_update():
Expand Down

0 comments on commit 9565c52

Please sign in to comment.