Skip to content

Commit

Permalink
Clarify setWaveformDragMode() documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisn committed Aug 14, 2024
1 parent 6507f30 commit 4431316
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,8 @@ Controls the behaviour of mouse drag operations. Possible values for the `mode`

When the [segment drag mode](#viewsetsegmentdragmodemode) is either `'no-overlap'` or `'compress'`, clicking on an existing segment in `'insert-segment'` mode will not create a new overlapping segment.

This method applies to the zoomable waveform view only.

```js
const view = instance.views.getView('zoomview');
view.setWaveformDragMode('insert-segment');
Expand Down

0 comments on commit 4431316

Please sign in to comment.