Possible fix for #2345

Possible fix for #2345
This commit is contained in:
Andrea Gavana
2024-09-05 14:48:30 +02:00
committed by GitHub
parent a87b02874e
commit 6580e5fdc2

View File

@@ -1534,7 +1534,7 @@ class ScrolledThumbnail(wx.ScrolledWindow):
# 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)