Code Monkey home page Code Monkey logo

Comments (4)

KentoNishi avatar KentoNishi commented on September 1, 2024

smooth scrolling takes a fairly large toll on performance, and that's why twitch and youtube (when chat is fast) don't do smooth scrolling by default either. it's also especially hard to make transitions blend together when messages are of uneven length and are arriving on uneven intervals. i could consider adding an option like this, but it'll be low on the priority list

from hyperchat.

hjgyuhuk avatar hjgyuhuk commented on September 1, 2024

Actually Using like scrollIntoView api which is browser-built in function, I maked better performance than 'scrolltobottom' which is library functions

scrollIntoView

screenshot 2022-10-16 111324

from hyperchat.

KentoNishi avatar KentoNishi commented on September 1, 2024
  1. it's not really fair to compare to regular ytc, u have to compare hyperchat with smooth scrolling vs hyperchat without smooth scrolling
  2. try scrolling up while the chat is moving. the problem with the scrollintoview api is that it tries to keep scrolling even when the user scrolls up. terminating scrollintoview on user scroll is not very straightforward as far as i know. if you can figure it out though, pls do make a pr, id be happy to merge it

from hyperchat.

hjgyuhuk avatar hjgyuhuk commented on September 1, 2024

Thank you very much for your reply and explanation, I will look into it

from hyperchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.