scroll playbackPosition into view when changed

This commit is contained in:
sparks-alec
2022-02-07 02:13:13 -05:00
parent 4d0536b1a4
commit 46de005b30
+4 -2
View File
@@ -280,8 +280,10 @@ exports.update = function(device, doc, updateType, data){
function($elem, index, array) {
$elem.classList.remove("playback-position");
});
doc.getElementById(data.cue.uniqueID).classList.add("playback-position");
$elem = doc.getElementById(data.cue.uniqueID);
$elem.classList.add("playback-position");
$elem.scrollIntoView({behavior: "smooth", block: "center"});
}
}