when zooming large graphs the tkinter event queue gets backed up causing the zoom to lag
specifically a bunch of events get created when zooming. every individual event triggers a redraw of the graph. however, since there are already more events in the queue tkinter decides to handle these first before actually drawing what we've told it to draw. this could be fixed by only drawing the graph if there are no more zoom events in the queue.
read https://tkdocs.com/tutorial/eventloop.html
when zooming large graphs the tkinter event queue gets backed up causing the zoom to lag
specifically a bunch of events get created when zooming. every individual event triggers a redraw of the graph. however, since there are already more events in the queue tkinter decides to handle these first before actually drawing what we've told it to draw. this could be fixed by only drawing the graph if there are no more zoom events in the queue.
read https://tkdocs.com/tutorial/eventloop.html