Releases: tuax/tua-body-scroll-lock
Releases · tuax/tua-body-scroll-lock
v1.3.0-beta.1
No significant changes
View changes on GitHub
v1.3.0-beta.0
🚀 Features
- Close #41, add clearBodyLocks api - by evinma in #41 (72869)
- pc: Close #59, support native dialog - by @BuptStEve in #59 (39287)
🐞 Bug Fixes
- Fixed android smooth scroll - by evinma (cfa94)
- Fixed android smooth scroll - by evinma (d26ba)
- Fixed android smooth scroll - by evinma (55415)
- demo: Close #44 fixed -> sticky - by evinma in #44 (a04bb)
View changes on GitHub
v1.1.0
v1.0.0
Enhancements
Support horizontal scrolling on iOS devices.
- Feature/scroll x ios (#31)
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 |
v0.3.1
v0.3.0
v0.2.2
v0.2.1
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>
Bug Fixes
- chore: only publish src/ and dist/, .babelrc -> babel.config.js(Thanks to @Grawl )
Enhancements
- feat: support esm in browser(#22)
v0.2.0
You can try this demo
Contributors
Bug Fixes
- fix:
unLockCallback
is undefined (#8) - fix: multi lock calls cannot reset body style in android (#14)
- fix(ios): remove useless code
Enhancements
- chore: lib/ -> dist/, remove useless plugins, add banner
- refactor: use forEach to reset attrs
- perf(ssr): cannot call lock/unlock in server side