File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed
packages/webui/src/client Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ export function VirtualElement({
64
64
className ?: string
65
65
} > ) : JSX . Element | null {
66
66
const resizeObserverManager = ElementObserverManager . getInstance ( )
67
- const [ waitForInitialLoad , setWaitForInitialLoad ] = useState ( true )
68
67
const [ inView , setInView ] = useState ( initialShow ?? false )
69
68
const [ isShowingChildren , setIsShowingChildren ] = useState ( inView )
70
69
@@ -197,26 +196,6 @@ export function VirtualElement({
197
196
} , [ ref , inView ] )
198
197
199
198
useEffect ( ( ) => {
200
- if ( inView === true ) {
201
- setIsShowingChildren ( true )
202
-
203
- // Schedule a measurement after a short delay
204
- if ( waitForInitialLoad && ref ) {
205
- const initialMeasurementTimeout = window . setTimeout ( ( ) => {
206
- const measurements = measureElement ( ref , placeholderHeight )
207
- if ( measurements ) {
208
- setMeasurements ( measurements )
209
- setWaitForInitialLoad ( false )
210
- }
211
- } , 800 )
212
-
213
- return ( ) => {
214
- window . clearTimeout ( initialMeasurementTimeout )
215
- }
216
- }
217
- return
218
- }
219
-
220
199
let idleCallback : number | undefined
221
200
let optimizeTimeout : number | undefined
222
201
Original file line number Diff line number Diff line change @@ -547,7 +547,6 @@ const SegmentTimelineContainerContent = withResolvedSegment(
547
547
548
548
this . visibilityChangeTimeout = setTimeout ( ( ) => {
549
549
if ( entries [ 0 ] . intersectionRatio < 0.99 && ! isMaintainingFocus ( ) && Date . now ( ) - this . mountedTime > 2000 ) {
550
- console . log ( 'Segment out of view :' , this . props . segmentId )
551
550
if ( typeof this . props . onSegmentScroll === 'function' ) this . props . onSegmentScroll ( )
552
551
this . isVisible = false
553
552
} else {
You can’t perform that action at this time.
0 commit comments