Skip to content

Commit

Permalink
Update WorkflowAI-H24-scr501-en.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ledangtrung committed Dec 1, 2024
1 parent de7395c commit 45f915f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions js/WorkflowAI-H24-scr501-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,18 @@ <h2 class=" dmview-title">##store_lb##</h2>
const listFilesArray = listFiles.split(";");
new MediaSlider('media-slider-container', listFilesArray);

// Add mobile event handling here
// Add touch event handling for mobile
// Add delayed touch handling
const tabButtons = document.querySelectorAll('[data-bs-toggle="tab"]');
tabButtons.forEach(button => {
button.addEventListener('touchstart', (e) => {
e.preventDefault();
const tab = new bootstrap.Tab(button);
tab.show();
setTimeout(() => {
const tab = new bootstrap.Tab(button);
tab.show();
}, 200);
}, { passive: false });
});
});
});
</script>
</body>

Expand Down

0 comments on commit 45f915f

Please sign in to comment.