cyypherus

Results 5 comments of cyypherus

I am assuming you're writing a custom widget, if that is the case, you can simply query `cursor.is_over(layout.bounds())` like so: ```rust fn on_event( &mut self, _tree: &mut Tree, event: Event,...

Oh right, that looks very similar. I tried adding the flag mentioned on that issue to enable server file watching but the issue still seems to occur. Could be that...

Oh yeah, I see now, winit has some state in the event loop to track whether we've moved the mouse already in a given iteration of the event loop. Maybe...

Yeah. I looked a bit more today, the reason the knob moves wildly is because it renders based on mouse movement delta across frames. Since the stale mouse position continues...

The best alternative I can think of would be to add some 'needs_hover' state somewhere appropriate. Hover ultimately depends on layout, but layout happens after events are processed, so you...