🔐 Body scroll locking that just works with everything
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] 8 months ago
No significant changes
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
No significant changes
Published by github-actions[bot] over 1 year ago
Published by BuptStEve almost 5 years ago
Support horizontal scrolling on iOS devices.
platform | link |
---|---|
gh-pages | https://tuateam.github.io/tua-body-scroll-lock |
jsbin | https://jsbin.com/cafiful/edit?output |
codepen | https://codepen.io/buptsteve/pen/PvNQjP |
jsfiddle | https://jsfiddle.net/buptsteve/6u8g3Lf5/ |
codesandbox | https://codesandbox.io/s/o73z4jy5q9 |
Published by evinma about 5 years ago
refactor: use typescript (#25)
Published by evinma about 5 years ago
chore: close #28, add missing babel (#29)
Published by BuptStEve over 5 years ago
body.style.height
to auto
(#24)Published by BuptStEve over 5 years ago
Now you can use ESM in browser, see this demo
<!-- unpkg -->
<script type="module">
import { lock, unlock } from 'https://unpkg.com/tua-body-scroll-lock/dist/tua-bsl.esm.browser.js'
lock()
unlock()
</script>
<!-- jsdelivr -->
<script type="module">
import { lock, unlock } from 'https://cdn.jsdelivr.net/npm/tua-body-scroll-lock/dist/tua-bsl.esm.browser.js'
lock()
unlock()
</script>
Published by BuptStEve over 5 years ago
You can try this demo
@li2go @feitiange
unLockCallback
is undefined (#8)