astro-vtbot
Advanced tools
Comparing version 1.7.12 to 1.7.13
@@ -46,3 +46,3 @@ export const MAIN_FRAME = 'div.main-frame'; | ||
export function openCategory(url?: URL) { | ||
export function openCategory(url?: URL, scrollIntoView = true) { | ||
const currentLink = url | ||
@@ -56,5 +56,5 @@ ? sidebarEntry(url) | ||
} | ||
currentLink?.scrollIntoView({ block: 'center', behavior: 'instant' }); | ||
scrollIntoView && currentLink?.scrollIntoView({ block: 'center', behavior: 'instant' }); | ||
} | ||
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.7.12", | ||
"version": "1.7.13", | ||
"description": "The ๐ Bag of Tricks โจ for Astro's View Transitions", | ||
@@ -9,0 +9,0 @@ "homepage": "https://github.com/martrapp/astro-vtbot#readme", |
No, its **_NOT_** a roBOT ๐ค, its a ๐ <b>B</b>ag <b>o</b>f <b>T</b>ricks!โจ | ||
# **The Bag of Tricks** for Astro's **View Transitions** | ||
## "If it doesn't move, it's probably unmoved." | ||
@@ -6,0 +5,0 @@ The bag of tricks provides extensions & support around Astro's view transitions. |
89503
55
1112
100