Skip to content

Commit c3e852b

Browse files
committed
remove logs
1 parent 0a4acb5 commit c3e852b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "astro-navbar",
3-
"version": "2.3.5",
3+
"version": "2.3.6",
44
"description": "Responsive Mobile Navigation with Dropdown in Astro",
55
"type": "module",
66
"exports": "./index.ts",

src/components/StickyHeader.astro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,11 @@ const {
3232
const removeScrollY = Math.max(scrollY - 50, 50); // Scroll position to remove active class
3333

3434
function updateAnimation(scrollPos) {
35-
console.log("running", scrollPos, addScrollY, removeScrollY);
3635
if (scrollPos > addScrollY) {
37-
console.log("addScrollY", addScrollY);
3836
header.classList.remove(...defaultClass.split(" "));
3937
header.classList.add("is-active", ...activeClass.split(" "));
4038
header.setAttribute("active", "");
4139
} else if (scrollPos < removeScrollY) {
42-
console.log("removeScrollY", removeScrollY);
4340
header.classList.remove("is-active", ...activeClass.split(" "));
4441
header.classList.add(...defaultClass.split(" "));
4542
header.removeAttribute("active");
@@ -51,7 +48,6 @@ const {
5148
if (!ticking) {
5249
window.requestAnimationFrame(function () {
5350
updateAnimation(lastKnownScrollPosition);
54-
console.log(lastKnownScrollPosition);
5551
ticking = false;
5652
});
5753

0 commit comments

Comments
 (0)