Synthesize a mouse moved event in the previous position after painting a scene

This ensures that we correctly update the hover state of elements whose position has changed relative to the mouse cursor even though the mouse hasn't actually moved.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-04-28 13:02:39 -06:00
co-authored by Antonio Scandurra Max Brunsfeld
parent b5463dcd1e
commit 1cb3fdbf7d
3 changed files with 41 additions and 36 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
use crate::{geometry::vector::Vector2F, keymap::Keystroke};
#[derive(Debug)]
#[derive(Clone, Debug)]
pub enum Event {
KeyDown {
keystroke: Keystroke,