Comments (7)
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.
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.
Omg, this issue exist for too long already... The one way I thought it can be hacked (for example in case of modal dialog):
- Just before we are going to invoke popup element we capture the whole gui skia canvas and store it as image etc.
- 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.
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.
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.
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.
This is fixed in the main
branch btw
from freya.
Related Issues (20)
- idea: Report/log wrongly-formatted attribute values
- enhancement: IME Support
- enhancement: Support special characters in text editing
- When using tokio to do asynchronous operations, the window will freeze HOT 2
- Inconsistent text render
- tracking: Dioxus 0.5 support
- Compiling failed! HOT 3
- Open Discussions for question about how to use Freya HOT 1
- enhancement: Clipboard support for Text editing
- enhancement: Undo & Redo support for Text editing
- idea: Turn the Drag & Drop example into a "Todo Demo"
- task: Fork Dioxus `native-core` crates HOT 4
- enhancement: Enable the Performance Plugin on debug builds and that can be toggled via a shortcut
- Unable to input Chinese
- request: Support images encoded in base64 inside SVG elements HOT 5
- enhancement : allow changing scrollbar thumbs and background color HOT 2
- refactor: Use enums for events names
- idea: Add `onrightclick` and `onmiddleclick` events HOT 6
- idea: Built-in caching mechanism for `Image` component
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freya.