Add some small test code for tracking down this list bug

This commit is contained in:
Mikayla 2024-01-16 16:52:55 -08:00
parent d00067cd86
commit db433586aa
No known key found for this signature in database
5 changed files with 165 additions and 92 deletions

View file

@ -1716,6 +1716,7 @@ 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));