Changeset 35436 for main


Ignore:
Timestamp:
2021-09-21T09:47:11+12:00 (3 years ago)
Author:
cstephen
Message:

Highlight words when scrubbing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItemEditor.vue

    r35430 r35436  
    121121        return {
    122122            enableEditing: false,
    123             words: [],
    124             lastHighlightedWord: 0
     123            words: []
    125124        }
    126125    },
     
    146145        /**
    147146         * Invoked when the value of a word changes.
     147         * @param event The input event.
    148148         * @param {Number} index The index of the word that has changed.
    149149         */
     
    247247    watch: {
    248248        currentPlaybackTime(newValue) {
    249             this.words[this.lastHighlightedWord].shouldHighlight = false;
    250 
    251             if (!this.playbackState.isPlaying || this.playbackState.id !== this.transcription.id) {
     249            if (this.playbackState.id !== this.transcription.id) {
    252250                return;
    253251            }
Note: See TracChangeset for help on using the changeset viewer.