Skip to content

Commit

Permalink
Merge pull request #926 from AI4Bharat/waveSurfer
Browse files Browse the repository at this point in the history
increase seek duration of shift and arrow keys
  • Loading branch information
ishvindersethi22 authored Feb 22, 2024
2 parents 82359be + 08de676 commit 80f81b3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,13 @@ const AllAudioTranscriptionLandingPage = () => {
if (event.shiftKey && event.key === 'ArrowLeft') {
event.preventDefault();
if (player) {
player.currentTime = player.currentTime - 0.05;
player.currentTime = player.currentTime - 1.25;
}
}
if (event.shiftKey && event.key === 'ArrowRight') {
event.preventDefault();
if (player) {
player.currentTime = player.currentTime + 0.05;
player.currentTime = player.currentTime + 1.25;
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -860,13 +860,13 @@ useEffect(() => {
if (event.shiftKey && event.key === 'ArrowLeft') {
event.preventDefault();
if(player){
player.currentTime = player.currentTime - 0.05;
player.currentTime = player.currentTime - 1.25;
}
}
if (event.shiftKey && event.key === 'ArrowRight') {
event.preventDefault();
if(player){
player.currentTime = player.currentTime + 0.05;
player.currentTime = player.currentTime + 1.25;
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1057,13 +1057,13 @@ useEffect(() => {
if (event.shiftKey && event.key === 'ArrowLeft') {
event.preventDefault();
if(player){
player.currentTime = player.currentTime - 0.05;
player.currentTime = player.currentTime - 1.25;
}
}
if (event.shiftKey && event.key === 'ArrowRight') {
event.preventDefault();
if(player){
player.currentTime = player.currentTime + 0.05;
player.currentTime = player.currentTime + 1.25;
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -905,13 +905,13 @@ useEffect(() => {
if (event.shiftKey && event.key === 'ArrowLeft') {
event.preventDefault();
if(player){
player.currentTime = player.currentTime - 0.05;
player.currentTime = player.currentTime - 1.25;
}
}
if (event.shiftKey && event.key === 'ArrowRight') {
event.preventDefault();
if(player){
player.currentTime = player.currentTime + 0.05;
player.currentTime = player.currentTime + 1.25;
}
}
};
Expand Down

0 comments on commit 80f81b3

Please sign in to comment.