Skip to content

Commit

Permalink
enable waveform renderers
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoxor committed Jul 26, 2022
1 parent 8341140 commit 115288b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "amethyst",
"author": "amethyst <geoxor123@outlook.com>",
"productName": "Amethyst",
"version": "1.4.0",
"version": "1.4.1",
"main": "./release/dist/main/main.js",
"licenses": [
{
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/PlayerControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ onMounted(() => {
currentTime.value = `${player.currentTimeFormatted()} / ${player.currentDurationFormatted()}`;
}, 500);
// waveformRenderer = new WaveformRenderer(player, '#waveformCanvas');
waveformRenderer = new WaveformRenderer(player, '#waveformCanvas');
});
onUnmounted(() => {
// waveformRenderer.clean();
waveformRenderer.clean();
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/SmoothScrollableContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const smoothScrollableContainer = ref() as Ref<HTMLDivElement>;
let sy = 0;
let dy = sy;
const DAMPING = 0.1;
const DAMPING = 0.15;
function render() {
//We calculate our container position by linear interpolation method
Expand Down

0 comments on commit 115288b

Please sign in to comment.