Skip to content

Commit

Permalink
Possible fix for #2345
Browse files Browse the repository at this point in the history
Possible fix for #2345
  • Loading branch information
infinity77 authored Sep 5, 2024
1 parent a87b028 commit 6580e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wx/lib/agw/scrolledthumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ def ScrollToSelected(self):

# scroll view
xu, yu = self.GetScrollPixelsPerUnit()
sy = sy/yu + (sy%yu and [1] or [0])[0] # convert sy to scroll units
sy = sy//yu + (sy%yu and [1] or [0])[0] # convert sy to scroll units
x, y = self.GetViewStart()

self.Scroll(x,sy)
Expand Down

0 comments on commit 6580e5f

Please sign in to comment.