GithubHelp home page GithubHelp logo

Keys with no "up" state about input-overlay HOT 4 CLOSED

univrsal avatar univrsal commented on August 23, 2024
Keys with no "up" state

from input-overlay.

Comments (4)

univrsal avatar univrsal commented on August 23, 2024

I am aware of this bug. This is because of how the input library works.
It only sends a event when the users is scrolling but it doesn't send one when the user stops scrolling, which means I disable scrolling everytime any type of event is sent (eg. Mouse movement) and enable scrolling when the scrolling event is set, which results in the flickering scroll texture when you move your mouse and scroll at the same time.

As of now I have not found a way to prevent this from happening, but I'm open to suggestions

from input-overlay.

patcolyn avatar patcolyn commented on August 23, 2024

I looked through the source and the way you implemented it is likely the most sensible one, though can cause issues with high polling rate mice.

I guess a usability alternative would be to highlight the texture for a set duration, say 25ms as an example. Refresh the 25ms highlight timer every event for continuously scrolling. Would give similar feedback to a single click, but this solution would not communicate a specific number of events.

from input-overlay.

univrsal avatar univrsal commented on August 23, 2024

We'll see, maybe I can come up with a solution at some point

from input-overlay.

univrsal avatar univrsal commented on August 23, 2024

Just a little heads up, I added a timer which will reset the scrolling after 120ms of no scrolling event.
It'll be in 5.0, once it's ready

from input-overlay.

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.