chore: small fixes

This commit is contained in:
07akioni 2020-05-19 00:13:17 +08:00
parent bd0584f319
commit 4f52a25308
2 changed files with 3 additions and 3 deletions

View File

@ -143,8 +143,8 @@ export default {
slotEl.style.top = `${offsetTop}px`
slotEl.style.height = `${offsetHeight}px`
slotEl.style.maxWidth = `${offsetWidth + offsetLeft}px`
barEl.getBoundingClientRect()
slotEl.getBoundingClientRect()
void barEl.offsetHeight
void slotEl.offsetHeight
if (!transition) {
barEl.style.transition = null

View File

@ -168,7 +168,7 @@ export default {
watch: {
active (value) {
if (value) {
if (this.listenersRegistered) {
if (!this.listenersRegistered) {
this.registerScrollListeners()
this.registerResizeListener()
this.listenersRegistered = true