diff --git a/plugin.json b/plugin.json index dc12fff..efb9d07 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "id": "section_map", "name": "Section Map", - "version": "1.0.0", + "version": "1.1.0", "private": false, "script": "screen.js", "category": "practice", diff --git a/screen.js b/screen.js index 8b2943f..db330b8 100644 --- a/screen.js +++ b/screen.js @@ -50,21 +50,45 @@ function _smRemove() { } } -function _smOnClick(e) { - if (!_smDuration) return; - const rect = _smBar.getBoundingClientRect(); - const pct = (e.clientX - rect.left) / rect.width; - const time = pct * _smDuration; +// The playback clock, across whichever backend is driving audio. getTime() is +// the audio-aligned clock the host exposes to plugins; the raw