Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

If tab is in the background then instant jump to bottom w/o animation

Gabe Kangas985e4a996ab5
diff --git a/webroot/js/utils/helpers.js b/webroot/js/utils/helpers.js
index cd2db34352..149d3a622b 100644
--- a/webroot/js/utils/helpers.js
+++ b/webroot/js/utils/helpers.js
@@ -32,7 +32,7 @@ export function jumpToBottom(element) {
element.scrollTo({
top: element.scrollHeight,
left: 0,
- behavior: 'smooth',
+ behavior: document.visibilityState === 'visible' ? 'smooth' : 'instant',
});
},
50,