Skip to content
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

Closed
ctf0 opened this issue May 5, 2018 · 4 comments
Closed

suggestion of usage #1

ctf0 opened this issue May 5, 2018 · 4 comments

Comments

@ctf0
Copy link

ctf0 commented May 5, 2018

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 👍

@voxtobox
Copy link
Owner

voxtobox commented May 7, 2018

@ctf0 Great idea! Perhaps we can detect whether browser supports overscroll-behavior and use directive only as a polyfill?

@ctf0
Copy link
Author

ctf0 commented May 7, 2018

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.

@ctf0 ctf0 closed this as completed Jun 1, 2018
@Grawl
Copy link

Grawl commented Jan 23, 2019

if someone find a polyfill for overscroll-behaviour please add link here

@Grawl
Copy link

Grawl commented Jan 23, 2019

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants