feat: batch notifications

This commit is contained in:
Jannat Patel
2024-05-24 13:08:02 +05:30
parent a748e2c2db
commit 850069d380
15 changed files with 93 additions and 36 deletions

View File

@@ -0,0 +1,11 @@
export function scrollTo(...options) {
if (!options || options.length === 0) return
const container = getScrollContainer()
if (!container) return
container.scrollTo(...options)
}
export function getScrollContainer() {
// window.scrollContainer is reference to the scroll container in DesktopLayout.vue and MobileLayout.vue
return window.scrollContainer
}