fixeded error caused by int converting to float
This commit is contained in:
parent
152a07729a
commit
8413f98f4c
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,4 +2,5 @@ __pycache__/
|
||||
exports/*
|
||||
last_path_cache.txt
|
||||
*.fontproj
|
||||
test export/
|
||||
test export/
|
||||
.vscode/
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user