fixeded error caused by int converting to float
This commit is contained in:
@@ -26,7 +26,7 @@ class EditorCanvas(tkinter.Canvas):
|
||||
self.bind("<Button-3>",self.handle_erase)
|
||||
self.bind("<B3-Motion>",self.handle_erase)
|
||||
if platform.system()=="Windows" or platform.system()=="Darwin":
|
||||
self.bind("<MouseWheel>",lambda event: self.handle_zoom(event.delta/120))
|
||||
self.bind("<MouseWheel>",lambda event: self.handle_zoom(event.delta//120))
|
||||
else:
|
||||
# This will probably work only on X11
|
||||
self.bind("<Button-4>",lambda _: self.handle_zoom(1))
|
||||
|
||||
Reference in New Issue
Block a user