-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add setScrollTime method (#3547)
* Feat: Add setScrollTime method This adds a `setScrollTime` method to `wavesurfer` that takes a time in seconds. It also adds `setScroll` and `setScrollPercentage` methods to `renderer` which are used by `setScrollTime`. This allows the viwing window to be set indepenently of the play head. Fixes: #3411 Related: #3361 * Add a test * make this more accurate * Update src/renderer.ts Co-authored-by: katspaugh <[email protected]> * Update src/wavesurfer.ts Co-authored-by: katspaugh <[email protected]> --------- Co-authored-by: katspaugh <[email protected]>
- Loading branch information
1 parent
a6756f2
commit 02afdf9
Showing
4 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters