only trigger onmousemove if the position has changed
This commit is contained in:
1 parent
b8c739826a
commit
e3757f97ed
1 file changed
+2
@@ -242,6 +242,7 @@ impl InnerInputState {
|
||||
|
||||
{
|
||||
// mousemove
|
||||
if old_pos != Some(new_pos) {
|
||||
let mut will_bubble = FxHashSet::default();
|
||||
for node in dom.get_listening_sorted("mousemove") {
|
||||
let node_layout = layout.layout(node.state.layout.node.unwrap()).unwrap();
|
||||
@@ -262,6 +263,7 @@ impl InnerInputState {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
// mouseenter
|
||||
|
||||
Reference in new issue
Block a user