We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd4424a commit e4ed680Copy full SHA for e4ed680
RemoteLogViewer.WinUI/Assets/Web/src/components/TextFileViewer.vue
@@ -251,6 +251,10 @@ const onVirtualScroll = (e: Event) => {
251
252
virtualScrollTimeout.value = setTimeout(() => {
253
const scrollRatio = target.scrollTop / (target.scrollHeight - target.clientHeight);
254
+
255
+ if (isNaN(scrollRatio)) {
256
+ return;
257
+ }
258
if (scrollRatio === 1) {
259
jumpLine(totalLines.value);
260
} else {
0 commit comments