Skip to content

Should React-Stockcharts-SVG pace input events? #594

Open

Description

@nullhook

I'd like to revive the discussion in #97 and make sure it's addressed in some way for v4.

Looking at the current script on main, ZoomTheChart still dispatches synthetic wheel events. Does this actually reflect what happens on a real page? I'd expect real wheel or mousemove events to come in roughly once per frame, with the browser getting a chance to render between them. Here, all the events are fired back to back, without any rendering in between.

I think this matters especially for react-stockcharts (perhaps, newer versions are better?), since it does quite a bit of work for each event. Could we introduce some delay or otherwise pace the events to better simulate real user input?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions