Remove unconditional invalidation when calling mouse region handlers

We want invalidation to opt-in as much as possible.
If you want a view to re-render, you need to call `cx.notify`.
This commit is contained in:
Nathan Sobo 2022-10-14 12:03:42 -06:00
parent ad6f9b2499
commit 934474f87e
3 changed files with 4 additions and 5 deletions

View file

@ -558,6 +558,8 @@ impl StateInner {
let visible_range = self.visible_range(height, scroll_top);
self.scroll_handler.as_mut().unwrap()(visible_range, cx);
}
cx.notify();
}
fn scroll_top(&self, logical_scroll_top: &ListOffset) -> f32 {