removed duplicate scroll effect
This commit is contained in:
1
app.js
1
app.js
@@ -9,7 +9,6 @@ const bodyTop = document.getElementById("top");
|
|||||||
document.querySelector('.value-block').addEventListener('toggle', function() {
|
document.querySelector('.value-block').addEventListener('toggle', function() {
|
||||||
if (this.open) {
|
if (this.open) {
|
||||||
// Scroll to contents of value block when it is opened
|
// Scroll to contents of value block when it is opened
|
||||||
valueBlock.scrollIntoView({ behavior: "smooth" });
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
valueBlock.scrollIntoView({ behavior: "smooth" });
|
valueBlock.scrollIntoView({ behavior: "smooth" });
|
||||||
}, 150);
|
}, 150);
|
||||||
|
Reference in New Issue
Block a user