File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " astro-navbar" ,
3
- "version" : " 2.3.5 " ,
3
+ "version" : " 2.3.6 " ,
4
4
"description" : " Responsive Mobile Navigation with Dropdown in Astro" ,
5
5
"type" : " module" ,
6
6
"exports" : " ./index.ts" ,
Original file line number Diff line number Diff line change @@ -32,14 +32,11 @@ const {
32
32
const removeScrollY = Math.max(scrollY - 50, 50); // Scroll position to remove active class
33
33
34
34
function updateAnimation(scrollPos) {
35
- console.log("running", scrollPos, addScrollY, removeScrollY);
36
35
if (scrollPos > addScrollY) {
37
- console.log("addScrollY", addScrollY);
38
36
header.classList.remove(...defaultClass.split(" "));
39
37
header.classList.add("is-active", ...activeClass.split(" "));
40
38
header.setAttribute("active", "");
41
39
} else if (scrollPos < removeScrollY) {
42
- console.log("removeScrollY", removeScrollY);
43
40
header.classList.remove("is-active", ...activeClass.split(" "));
44
41
header.classList.add(...defaultClass.split(" "));
45
42
header.removeAttribute("active");
@@ -51,7 +48,6 @@ const {
51
48
if (!ticking) {
52
49
window.requestAnimationFrame(function () {
53
50
updateAnimation(lastKnownScrollPosition);
54
- console.log(lastKnownScrollPosition);
55
51
ticking = false;
56
52
});
57
53
You can’t perform that action at this time.
0 commit comments