Giter VIP home page Giter VIP logo

Comments (7)

marc2332 avatar marc2332 commented on June 19, 2024

Yeah... This is caused by the lack of event bubbling. When Dioxus 0.5 gets released ( a matter of weeks from what they have said in the discord) I should be able to fix this 😢

from freya.

marc2332 avatar marc2332 commented on June 19, 2024

I am sorry I cannot fix this right now, I wish I could, it has prevented me from developing new features such as popups and other ideas... But again, once Dioxus 0.5 gets released, I should be able to implement a proper event bubbling system, which should fix this cross-layer issues 🙏

from freya.

baleksey avatar baleksey commented on June 19, 2024

Omg, this issue exist for too long already... The one way I thought it can be hacked (for example in case of modal dialog):

  1. Just before we are going to invoke popup element we capture the whole gui skia canvas and store it as image etc.
  2. Then we rerender all gui, but leave only 2 layers: background "rect" with image from step 1 (dimmed or blurred, or just as is) and draw our dialog rect on top of it.

In this way we "see" our background gui and think it still there :) but no more worries about clicks etc.

What do you think? Can this workaround can be done the easiest possible way?

from freya.

marc2332 avatar marc2332 commented on June 19, 2024

Thats very inefficient and the problems isn't about rendering, it's not even related to skia, is just that event bubbling across different components in Dioxus is currently broken in the latest stable release

from freya.

baleksey avatar baleksey commented on June 19, 2024

I got it. I just thinking about how to make current project working (with all that popup things) while we are waiting for the fix for an known issue since july...

from freya.

marc2332 avatar marc2332 commented on June 19, 2024

I have gotten a decent implementation in #268, so when Dioxus 0.5 goes out I will release Freya 0.2 shortly after

from freya.

marc2332 avatar marc2332 commented on June 19, 2024

This is fixed in the main branch btw

from freya.

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.