Skip to content

Commit

Permalink
autoscroll cv
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Escontrela authored and Alejandro Escontrela committed Jan 13, 2025
1 parent b2090db commit 6e26bb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ async function renderPDF(viewer, url) {
viewer.addEventListener('click', stopAutoScroll);
viewer.addEventListener('keydown', stopAutoScroll);
viewer.addEventListener('keyup', stopAutoScroll);

// Detect touch and scroll events for mobile
viewer.addEventListener('touchstart', stopAutoScroll);
viewer.addEventListener('touchmove', stopAutoScroll);
viewer.addEventListener('touchend', stopAutoScroll);
}


Expand Down

0 comments on commit 6e26bb1

Please sign in to comment.