tua-body-scroll-lock

🔐 Body scroll locking that just works with everything

MIT License

Downloads
215.3K
Stars
396
Committers
9

Bot releases are visible (Hide)

tua-body-scroll-lock - v1.5.0 Latest Release

Published by github-actions[bot] 7 months ago

   🚀 Features

    View changes on GitHub
tua-body-scroll-lock - v1.4.1

Published by github-actions[bot] 8 months ago

No significant changes

    View changes on GitHub
tua-body-scroll-lock - v1.4.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

    View changes on GitHub
tua-body-scroll-lock - v1.3.1

Published by github-actions[bot] over 1 year ago

   🐞 Bug Fixes

    View changes on GitHub
tua-body-scroll-lock - v1.3.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

   🏎 Performance

  • pc:
    • Only set overflow hidden for html  -  by @BuptStEve (e462e)
    View changes on GitHub
tua-body-scroll-lock - v1.3.0-beta.2

Published by github-actions[bot] over 1 year ago

   🏎 Performance

  • pc: Only set overflow hidden for html  -  by @BuptStEve (e320d)
    View changes on GitHub
tua-body-scroll-lock - v1.3.0-beta.1

Published by github-actions[bot] over 1 year ago

No significant changes

    View changes on GitHub
tua-body-scroll-lock - v1.3.0-beta.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub
tua-body-scroll-lock -

Published by evinma over 4 years ago

feat: close #38, support multiple targetElement(#40)

  • docs: update demo and readme
  • refactor: remove $
tua-body-scroll-lock - v1.0.0

Published by BuptStEve almost 5 years ago

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
tua-body-scroll-lock - v0.3.0

Published by evinma about 5 years ago

refactor: use typescript (#25)

tua-body-scroll-lock - v0.3.1

Published by evinma about 5 years ago

chore: close #28, add missing babel (#29)

tua-body-scroll-lock - v0.2.2

Published by BuptStEve over 5 years ago

Bug Fixes

  • fix(android): set body.style.height to auto (#24)
tua-body-scroll-lock - v0.2.1

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>

Bug Fixes

  • chore: only publish src/ and dist/, .babelrc -> babel.config.js(Thanks to @Grawl )

Enhancements

  • feat: support esm in browser(#22)
tua-body-scroll-lock - v0.2.0

Published by BuptStEve over 5 years ago

You can try this demo
image

Contributors

@li2go @feitiange

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
tua-body-scroll-lock -

Published by evinma over 5 years ago