File tree 1 file changed +9
-6
lines changed
frontend/src/routes/items
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 65
65
66
66
let fixActionbar = true ;
67
67
onMount (() => {
68
- const observer = new IntersectionObserver ((entries ) => {
69
- entries .forEach ((entry ) => {
70
- fixActionbar = ! entry .isIntersecting ;
71
- });
72
- });
68
+ const observer = new IntersectionObserver (
69
+ (entries ) => {
70
+ entries .forEach ((entry ) => {
71
+ fixActionbar = ! entry .isIntersecting ;
72
+ });
73
+ },
74
+ { threshold: 1 }
75
+ );
73
76
observer .observe (document .querySelector (' #actionbar-anchor' )! );
74
77
});
75
78
</script >
90
93
<Separator class =" my-4" />
91
94
<p class =" text-muted-foreground text-center mb-4" >End of Content</p >
92
95
93
- <ItemActionFloating bind:data bind:fixed ={fixActionbar } />
94
96
<div id =" actionbar-anchor" ></div >
97
+ <ItemActionFloating {data } fixed ={fixActionbar } />
95
98
</div >
You can’t perform that action at this time.
0 commit comments