Skip to content

Commit

Permalink
Note bug with Wx+PyGFX
Browse files Browse the repository at this point in the history
  • Loading branch information
gselzer committed Jan 21, 2025
1 parent 9a9acea commit 43a4414
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ndv/views/_wx/_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def filter_mouse_events(

active_button = MouseButton.NONE

# FIXME These functions don't get called with pygfx.
# See https://github.com/pygfx/wgpu-py/pull/665 for the fix.
def on_mouse_move(event: MouseEvent) -> None:
nonlocal active_button
mme = MouseMoveEvent(x=event.GetX(), y=event.GetY(), btn=active_button)
Expand Down

0 comments on commit 43a4414

Please sign in to comment.