Adjust scroll delay
This commit is contained in:
8
app.js
8
app.js
@@ -12,7 +12,7 @@ document.querySelector('.value-block').addEventListener('toggle', function() {
|
||||
valueBlock.scrollIntoView({ behavior: "smooth" });
|
||||
setTimeout(() => {
|
||||
valueBlock.scrollIntoView({ behavior: "smooth" });
|
||||
}, 100);
|
||||
}, 150);
|
||||
} else {
|
||||
// Scroll to top of button list when value block is closed
|
||||
}
|
||||
@@ -80,7 +80,7 @@ document.querySelector("#btc-qr-link a").addEventListener("click", function(){
|
||||
document.querySelector("#btcwall").insertAdjacentHTML("afterend", "<span class=\"crypto-js-qr\" id=\"btc-js-qr\"><img src=\"images/crypto/btc-qr.png\"></span>");
|
||||
setTimeout(() => {
|
||||
document.querySelector("#btc-qr-link").scrollIntoView({ behavior: "smooth" });
|
||||
}, 100);
|
||||
}, 150);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -100,7 +100,7 @@ document.querySelector("#eth-qr-link a").addEventListener("click", function(){
|
||||
document.querySelector("#ethwall").insertAdjacentHTML("afterend", "<span class=\"crypto-js-qr\" id=\"eth-js-qr\"><img src=\"images/crypto/eth-qr.png\"></span>");
|
||||
setTimeout(() => {
|
||||
document.querySelector("#eth-qr-link").scrollIntoView({ behavior: "smooth" });
|
||||
}, 100);
|
||||
}, 150);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -120,6 +120,6 @@ document.querySelector("#doge-qr-link a").addEventListener("click", function(){
|
||||
document.querySelector("#dogewall").insertAdjacentHTML("afterend", "<span class=\"crypto-js-qr\" id=\"doge-js-qr\"><img src=\"images/crypto/doge-qr.png\"></span>");
|
||||
setTimeout(() => {
|
||||
document.querySelector("#doge-qr-link").scrollIntoView({ behavior: "smooth" });
|
||||
}, 100);
|
||||
}, 150);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user