Skip to content

Commit 4976696

Browse files
olzzonrjmunro
authored andcommitted
fix: raise time for detach live segment
1 parent 449f5ef commit 4976696

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/webui/src/client/lib/viewPort.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ async function innerScrollToSegment(
255255
bottom = Math.floor(bottom)
256256
if (bottom > Math.floor(window.innerHeight) || top < headerHeight) {
257257
// If not in place atempt to scroll again
258-
console.log('A Second attempt to scroll is needed')
259258
innerScrollToSegment(elementToScrollTo, forceScroll, true, true).then(resolve, reject)
260259
} else {
261260
resolve(true)

packages/webui/src/client/ui/SegmentTimeline/SegmentTimelineContainer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ const SegmentTimelineContainerContent = withResolvedSegment(
204204
window.requestAnimationFrame(() => {
205205
this.mountedTime = Date.now()
206206
if (this.state.isLiveSegment && this.props.followLiveSegments && !this.isVisible) {
207-
console.log('SegmentTimelinecontainer is not visible')
208207
scrollToSegment(this.props.segmentId, true).catch((error) => {
209208
if (!error.toString().match(/another scroll/)) console.warn(error)
210209
})
@@ -558,7 +557,7 @@ const SegmentTimelineContainerContent = withResolvedSegment(
558557
} else {
559558
this.isVisible = true
560559
}
561-
}, 1200)
560+
}, 1800)
562561
}
563562

564563
startLive = () => {

0 commit comments

Comments
 (0)