Comments (4)
Problem: for some reason, the mouseleave (or pointerleave) event is not emitted.
For the leave events to be emitted you need to also register a mouseenter or pointerenter event, you can leave it empty but it's how currently freya detects that an element is interested in the "leave" event. I plan to improve this at some point
Question: Is there a way to track when the animation ends and then do something?
You can use a use_effect or use_memo, call !animations.is_running() && animations.has_run_yet()
from freya.
Hey, by just looking at the code I would say that the animation is not starting because the same signal it depends (info) has a new value at the same time you are starting it. This seems like a common case so I'll see what I can do about it.
from freya.
I fixed it using use_effect
(also added RippleState
).
However, now there is one problem and one question.
Problem: for some reason, the mouseleave
(or pointerleave
) event is not emitted.
Question: Is there a way to track when the animation ends and then do something?
from freya.
Thanks!
from freya.
Related Issues (20)
- enhancement: Incremental Accessibility Tree
- enhancement: `spacing` attribute for `rect` HOT 2
- enhancement: `freya-code-viewer`
- bug: Global events are not triggered if there are no normal listeners HOT 1
- proposal: Unified text primitives/nestable text elements HOT 4
- enhancement: Only focus focusable accessibility nodes
- tracking: Accessibility API
- enhancement: `import_image`
- bug: `onclick` should only be emitted to the element it was started on and not where it finished HOT 1
- feat: Grid and Pane components
- enhancement: Support fitting scroll views size in the cross axis
- enhancement: System Tray Support HOT 2
- question: Support for common text editing shortcuts HOT 4
- enhancement: Event utilities
- enhancement: Built-in integration with rfd
- Some minor errors occurred while compiling examle\i18n.rs HOT 3
- `UseFocus::validate_globalkeydown` only validates if keyboard focused. HOT 1
- What methods can make the window display again? HOT 4
- Consider making `UseFocus::attribute` an opaque type.
- bug: `mouseenter` gets emitted with touch data when there is touch movement HOT 1
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.