Skip to content

Commit

Permalink
Revert "* Use nextTick instead of setTimeout"
Browse files Browse the repository at this point in the history
This reverts commit 9215b0f.
  • Loading branch information
PikachuEXE committed Apr 18, 2023
1 parent 9215b0f commit 6b5c0c1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineComponent, nextTick } from 'vue'
import { defineComponent } from 'vue'
import { mapMutations } from 'vuex'
import FtLoader from '../ft-loader/ft-loader.vue'
import FtCard from '../ft-card/ft-card.vue'
Expand Down Expand Up @@ -98,9 +98,9 @@ export default defineComponent({
// Since components are only rendered after scroll,
// the scroll position requires another adjustment
// Timeout value depends on how soon the components finish rendering
nextTick(() => {
setTimeout(() => {
container.scrollTop = currentVideoItem.offsetTop - container.offsetTop
})
}, 500)
}
}
}
Expand Down

0 comments on commit 6b5c0c1

Please sign in to comment.