Drop scroll events if there's been a reset

co-authored-by: Nathan <nathan@zed.dev>
co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
Mikayla 2024-01-17 13:00:29 -08:00
parent 80852c3e18
commit 6db18e8972
No known key found for this signature in database
4 changed files with 112 additions and 114 deletions

View file

@ -1717,7 +1717,6 @@ impl<'a> WindowContext<'a> {
.mouse_listeners
.remove(&event.type_id())
{
dbg!(handlers.len());
// Because handlers may add other handlers, we sort every time.
handlers.sort_by(|(a, _, _), (b, _, _)| a.cmp(b));