Code Monkey home page Code Monkey logo

Comments (5)

maximecb avatar maximecb commented on August 21, 2024 1

I merged #69 from DI-John. This sidesteps the bug in Safari and the knobs now work. There's another issue with pointer capture seemingly not working in Safari (argh wtf!), but the situation for Safari users has improved.

I'll still leave the warning popup suggesting that Safari users should use Chrome enabled, at least until we have a fix for the pointer capture bug.

from noisecraft.

JohnErnstDev avatar JohnErnstDev commented on August 21, 2024

@maximecb Noticed that Safari doesn't receive the expected movementY values on these mouse events, here is a possible workaround:

#67

from noisecraft.

maximecb avatar maximecb commented on August 21, 2024

Thanks for taking a look DI-John. I tried out your fix and it seems to work, but I'm a bit confused because:

  1. The MDN page lists Safari as supporting MouseEvent.MovementY, but in actuality, my Safari browser reports the value as always being zero (wtf?). So your fix seems to work, but it seems like it shouldn't be needed? The value reported for movementY in Safari is zero, which is different from Chrome and Firefox, and clearly wrong.

  2. There's another bug in Safari. When the mouse is released, it triggers the node creation dialog. This should not be happening because of the pointer capture. This is more wacky behavior on the part of Safari, which I'm not sure how to address, besides maybe using an invisible div or something?

from noisecraft.

JohnErnstDev avatar JohnErnstDev commented on August 21, 2024

@maximecb

The MDN page lists Safari as supporting MouseEvent.MovementY, but in actuality, my Safari browser reports the value as always being zero (wtf?)

Yeah, that's what I encountered as well. Perhaps it's a browser bug that only happens in the context of the setPointerCapture / releasePointerCapture. Might be interesting to do some tests using the movementY value in various contexts, perhaps it works just in a regular onmousemove handler without pointer capture.

There's another bug in Safari. When the mouse is released, it triggers the node creation dialog.

Hm, interesting.

from noisecraft.

maximecb avatar maximecb commented on August 21, 2024

Pushed a hack which should fix this problem.

from noisecraft.

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.