Skip to content

Commit c0252b0

Browse files
committed
feat: add message for 2.stage scroll to log how often this happens. (it shouldn't happen at all)
1 parent e47db49 commit c0252b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ async function innerScrollToSegment(
229229
bottom = Math.floor(bottom)
230230
if (bottom > Math.floor(window.innerHeight) || top < headerHeight) {
231231
// If not in place atempt to scroll again
232+
console.log('A Second attempt to scroll is needed')
232233
innerScrollToSegment(elementToScrollTo, forceScroll, true, true).then(resolve, reject)
233234
} else {
234235
resolve(true)

0 commit comments

Comments
 (0)