Skip to content

Commit

Permalink
Fix: import draggable from wavesurfer
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Nov 26, 2023
1 parent 715add5 commit b443cae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 90 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wavesurfer-multitrack",
"version": "0.4.4",
"version": "0.4.5",
"license": "BSD-3-Clause",
"author": "katspaugh",
"description": "Multritrack super-plugin for wavesurfer.js",
Expand Down Expand Up @@ -51,6 +51,6 @@
"typescript": "^5.0.4"
},
"dependencies": {
"wavesurfer.js": "^7.4.7"
"wavesurfer.js": "^7.4.11"
}
}
83 changes: 0 additions & 83 deletions src/draggable.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/multitrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import RegionsPlugin from 'wavesurfer.js/dist/plugins/regions.js'
import TimelinePlugin, { type TimelinePluginOptions } from 'wavesurfer.js/dist/plugins/timeline.js'
import EnvelopePlugin, { type EnvelopePoint, type EnvelopePluginOptions } from 'wavesurfer.js/dist/plugins/envelope.js'
import EventEmitter from 'wavesurfer.js/dist/event-emitter.js'
import { makeDraggable } from './draggable.js'
import { makeDraggable } from 'wavesurfer.js/dist/draggable.js'
import WebAudioPlayer from './webaudio.js'

export type TrackId = string | number
Expand Down Expand Up @@ -738,6 +738,7 @@ function initDragging(container: HTMLElement, onDrag: (delta: number) => void, r
() => {
container.style.cursor = 'grab'
},
5,
rightButtonDrag ? 2 : 0,
)

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1240,10 +1240,10 @@ vscode-textmate@^8.0.0:
resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-8.0.0.tgz#2c7a3b1163ef0441097e0b5d6389cd5504b59e5d"
integrity sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==

wavesurfer.js@^7.4.7:
version "7.4.7"
resolved "https://registry.yarnpkg.com/wavesurfer.js/-/wavesurfer.js-7.4.7.tgz#8391d677fbf62e02185f7f54c81e7ac6886e3bb6"
integrity sha512-RoiTNAQHkw9yfrBQ14uhjST3K6xElW3Gp3ow6Bl1dE5jAHb8XAKixZlkqilIpUXoJCrL1nyW/py2mc1L3mwYCw==
wavesurfer.js@^7.4.11:
version "7.4.11"
resolved "https://registry.yarnpkg.com/wavesurfer.js/-/wavesurfer.js-7.4.11.tgz#aea5c2887763393f30e766d89503d203cf5ac4af"
integrity sha512-8Hg8lc2IPVA+NXrMEGjqVGETHnUTcegM45iWHtfjX7kR8UzBZDcOOHAQje9JX7yzukq3ifuDAR859Vw7MYgByQ==

which@^2.0.1:
version "2.0.2"
Expand Down

0 comments on commit b443cae

Please sign in to comment.