GithubHelp home page GithubHelp logo

Comments (6)

vks avatar vks commented on September 15, 2024

This might be related to #6.

from bracket-lib.

dagit avatar dagit commented on September 15, 2024

This might be related to #6.

After reading through #6, I think you actually meant #7. Anyway, I tried changing it to Poll instead of Wait and now it behaves as I would expect.

from bracket-lib.

thebracket avatar thebracket commented on September 15, 2024

Sorry for the delay - moving house is crazy, and I don't have reliable Internet at home until early next week. I'm pretty sure this is related to the Linux polling problems. *control_flow = ControlFlow::Wait; gets events on Linux, but on Windows 10 it only works if the mouse is inside the window (so there are events being streamed in). On Windows 10, *control_flow = ControlFlow::Poll; works consistently, but gives some problems for Linux users. I'll see if I can find a better way, otherwise it might be time for some platform-specific code.

Thanks!

from bracket-lib.

thebracket avatar thebracket commented on September 15, 2024

I've added a commit varying the tick behavior between Linux (which doesn't seem to like polling on a lot of platforms, there are earlier bugs about this) and Windows (which doesn't tick unless the window has focus and the mouse is over it on Wait mode). Hopefully that'll help.

from bracket-lib.

thebracket avatar thebracket commented on September 15, 2024

I've merged in some more changes that have it running smoothly on both Windows 10 and Ubuntu (in a VM on VirtualBox) on my machine.

from bracket-lib.

dagit avatar dagit commented on September 15, 2024

from bracket-lib.

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.