- fix an issue where content would jump when navbar was stuck
- update v-scroll-threshold dependency to fix a small issue with scrollBackThreshold
- update v-scroll-threshold dependency to fix the issue of disappearing navbar when the page first time loads and top of screen is inside navbar threshold.
- migrated project to typescript
- removed
vse::hide
andvse::show
- BREAKING CHANGE: now you have to manually import css classes when using default export, OR you can opt in to use
vue-sticky-element/vue
add scrollElement
prop.
add forceShow
prop.
add skipChecks
prop.
add show
and stuck
events.
add scrollBackThreshold
to fix issue on touch screens.
detect child element resize and update the height accordingly
unstuck at top of the page
update npm tags
fix a small issue with v-scroll-threshold directive and not passing child props to cloned element
update readme
add vue 3 support
$root
events are not supported on vue 3
Fixed incorrect usage of visibleOnDirection
prop in ReadMe, Thanks for spotting it @emrullahtastan
updated some dev dep packages
- It's now possible to force hide the sticky element using
this.$root.$emit('vse::hide')
and undo usingthis.$root.$emit('vse::show')