Skip to content

Commit

Permalink
fix snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Nov 29, 2023
1 parent 1ce7700 commit f52f377
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 63 deletions.
6 changes: 3 additions & 3 deletions src/textual/pilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,12 @@ async def _post_mouse_events(
# Get the widget under the mouse before the event because the app might
# react to the event and move things around. We override on each iteration
# because we assume the final event in `events` is the actual event we care
# about and that all the preceeding events are just setup.
# E.g., the click event is preceeded by MouseDown/MouseUp to emulate how
# about and that all the preceding events are just setup.
# E.g., the click event is preceded by MouseDown/MouseUp to emulate how
# the driver works and emits a click event.
widget_at, _ = app.get_widget_at(*offset)
event = mouse_event_cls(**message_arguments)
app.post_message(event)
app.screen._forward_event(event)
await self.pause()

return selector is None or widget_at is target_widget
Expand Down
Loading

0 comments on commit f52f377

Please sign in to comment.