mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-05 05:47:46 +00:00
scroll playbackPosition into view when changed
This commit is contained in:
@@ -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"});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user