diff --git a/.gitignore b/.gitignore index b1f2b9b..a087069 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ __pycache__/ exports/* last_path_cache.txt *.fontproj -test export/ \ No newline at end of file +test export/ +.vscode/ \ No newline at end of file diff --git a/canvas.py b/canvas.py index 76bc4ea..3a622ed 100644 --- a/canvas.py +++ b/canvas.py @@ -26,7 +26,7 @@ class EditorCanvas(tkinter.Canvas): self.bind("",self.handle_erase) self.bind("",self.handle_erase) if platform.system()=="Windows" or platform.system()=="Darwin": - self.bind("",lambda event: self.handle_zoom(event.delta/120)) + self.bind("",lambda event: self.handle_zoom(event.delta//120)) else: # This will probably work only on X11 self.bind("",lambda _: self.handle_zoom(1))