New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
suggestion of usage #1
Comments
@ctf0 Great idea! Perhaps we can detect whether browser supports |
maybe if u separated the logic into its own lib as a polyfill then yes but in its current state "a lib for vue" i don't think we need the detection. |
if someone find a polyfill for |
for now, I wrote this: import VueScrollStop from 'vue-scroll-stop'
if (CSS.supports('overscroll-behavior', 'contain')) {
console.log('[v-scroll-stop] is disabled, use `overscroll-behavior: contain` instead')
} else {
console.log('`overscroll-behavior: contain` is not supported, use [v-scroll-stop]')
Vue.use(VueScrollStop)
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i believe the package mimics the main behavior of
overscroll-behavior
https://caniuse.com/#search=overscroll-behavior
https://developers.google.com/web/updates/2017/11/overscroll-behavior
so if u want maybe we can add those info to the readme or even extract the code to a separate lib so everyone can use it whether is using vue or not 👍
The text was updated successfully, but these errors were encountered: