Skip to content

Commit

Permalink
Use previous_html_element_weak_ for pointer out events
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsavage1 committed Sep 15, 2023
1 parent 2849a74 commit b3635ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobalt/layout/topmost_event_target.cc
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ void TopmostEventTarget::HandleScrollState(

scoped_refptr<dom::HTMLElement> previous_html_element(
previous_html_element_weak_);
DispatchPointerEventsForScrollStart(target_element, event_init);
DispatchPointerEventsForScrollStart(previous_html_element, event_init);
pointer_state->SetWasCancelled(pointer_id);
pointer_state->ClearPendingPointerCaptureTargetOverride(pointer_id);

Expand Down

0 comments on commit b3635ba

Please sign in to comment.