- Prevent accidentally scrolling to the top of the viewport if you call
noScroll.on()
twice without any interveningnoScroll.off()
.
- Add
toggle
function.
- Switch methods for scroll blocking. Now we're fixing the
position
ofdocument.documentElement
. - Switch methods for scrollbar compensation. Now we're using
calc()
.
- Fix IE bug.
- Expose
noScroll
globally ifmodule.exports
is unavailable (no CommonJS environment).
- No-op if there's no document.
- Switch inline styles from body to
documentElement
.
- Initial release.