Scrolling Utils
Determine Scrolling Container
Might be worthwhile to read how this is done hereimport { scroll } from 'quasar'
const { getScrollTarget } = scroll
// Get parent DomNode that handles page scrolling
// Usually this is element with classname ".layout-view" or "window"
(DOM Element) getScrollTarget(DomElement)
Get/Set Scroll Position
import { scroll } from 'quasar' |
Determine Scroll Height
import { scroll } from 'quasar' |
Determining Scrollbar Width
Computes the width of scrollbar in pixels.import { scroll } from 'quasar'
const { getScrollbarWidth } = scroll
console.log(getScrollbarWidth()) // 16 (it's in pixels)