make slicer not act unless open

disk-divisor
Moe 2022-11-10 06:50:54 -08:00
parent 47aafb5c6c
commit 494dc65fcc
1 changed files with 3 additions and 1 deletions

View File

@ -236,7 +236,9 @@ $(document).ready(function(){
loadedVideoElement.pause()
})
$(window).resize(function(){
drawTimeTicks(loadedVideoForSlicer)
if(tabTree.name === 'studio' && loadedVideoElement){
drawTimeTicks(loadedVideoForSlicer)
}
})
timelineStrip.resize(function(){
stripWidth = timelineStrip.width()