File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3434 "types" : " ./dist/index.d.ts"
3535 }
3636 },
37- "main" : " dist/index.cjs" ,
3837 "module" : " dist/index.js" ,
3938 "types" : " dist/index.d.ts" ,
4039 "files" : [
Original file line number Diff line number Diff line change @@ -87,7 +87,12 @@ export function useFixedHeader(
8787 */
8888 function onScrollRestoration ( ) {
8989 requestAnimationFrame ( ( ) => {
90- if ( ! internal . isMount || ! isFixed ( ) ) return
90+ if ( ! internal . isMount ) return
91+
92+ if ( ! isFixed ( ) ) {
93+ internal . isMount = false
94+ return
95+ }
9196
9297 const isInstant = getScrollTop ( ) > getHeaderHeight ( ) * 1.2 // Resolves to false if scroll is smooth
9398
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ export default defineConfig(({ mode }) => {
1010 build : {
1111 lib : {
1212 entry : 'src/index.ts' ,
13- name : 'vue-use-fixed-header' ,
1413 fileName : 'index' ,
1514 formats : [ 'es' ] ,
1615 } ,
You can’t perform that action at this time.
0 commit comments