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:
parent
ad6f9b2499
commit
934474f87e
3 changed files with 4 additions and 5 deletions
|
@ -482,9 +482,6 @@ impl Presenter {
|
|||
|
||||
if let Some(callback) = valid_region.handlers.get(®ion_event.handler_key()) {
|
||||
event_cx.handled = true;
|
||||
event_cx
|
||||
.invalidated_views
|
||||
.insert(valid_region.id().view_id());
|
||||
event_cx.with_current_view(valid_region.id().view_id(), {
|
||||
let region_event = region_event.clone();
|
||||
|cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue