src/utils/util.js
/**
        * Scroll to bottom
        * Scrolls thread to bottom of page; uses tween easing
        *
        * @param speed - default to zero (no animation)
        */
Scroll to bottom
Scrolls thread to bottom of page; uses tween easing

@param speed - default to zero (no animation)
Scroll to bottom Scrolls thread to bottom of page ; uses tween easing @param speed - default to zero ( no animation )
static scrollToBottom(speed=0) {
        if (Util.isScrolledToBottom()) 
            return false;
        const docu = document.getElementsByTagName("html")[0].clientHeight;
        const body = document.getElementsByTagName("body")[0].clientHeight;
        const bottom = Math.max(docu, body); 
        jump(bottom, {
            duration: speed,
            easing: (t, b, c, d) => { 
                if ((t/=d/2) < 1) return c/2*t*t*t + b;
                return c/2*((t-=2)*t*t + 2) + b;
            }
        });
    }
static scrollToBottom ( speed = 0 ) { if ( Util . isScrolledToBottom ( ) ) return false ; const docu = document . getElementsByTagName ( "html" ) [ 0 ] . clientHeight ; const body = document . getElementsByTagName ( "body" ) [ 0 ] . clientHeight ; const bottom = Math . max ( docu , body ) ; jump ( bottom , { duration : speed , easing : ( t , b , c , d ) => { if ( ( t /= d / 2 ) < 1 ) return c / 2 * t * t * t + b ; return c / 2 * ( ( t -= 2 ) * t * t + 2 ) + b ; } } ) ; }
Scroll to bottom
 Scrolls thread to bottom of page; uses tween easing
Scroll to bottom Scrolls thread to bottom of page ; uses tween easing
// Ignore if at bottom // Calculate bottom // Jump to bottom // easeInOutCubic - @jaxgeller