@ape.swap/bonds-sdk 3.0.40-test.5 → 3.0.40-test.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +2 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -77664,7 +77664,8 @@ const Bonds = () => {
|
|
|
77664
77664
|
const tryScroll = () => {
|
|
77665
77665
|
const element = document.querySelector(hash);
|
|
77666
77666
|
if (element) {
|
|
77667
|
-
element.
|
|
77667
|
+
const y = element.getBoundingClientRect().top + window.scrollY - 70;
|
|
77668
|
+
window.scrollTo({ top: y, behavior: 'smooth' });
|
|
77668
77669
|
}
|
|
77669
77670
|
else {
|
|
77670
77671
|
setTimeout(tryScroll, 50);
|