fixeded error caused by int converting to float

This commit is contained in:
Looki2000 2024-03-07 18:45:53 +01:00
parent 152a07729a
commit 8413f98f4c
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@ __pycache__/
exports/*
last_path_cache.txt
*.fontproj
test export/
test export/
.vscode/

View File

@ -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))