Closed Heath123 closed 2 years ago
I used https://stackoverflow.com/questions/33083484/on-ctrlmousewheel-event and https://www.gavsblog.com/blog/find-closest-number-in-array-javascript (I could have done the second one myself but I wanted to make it sure it was clean), should I credit those? This could be improves by zooming into the point where the mouse is hovered, but this works for now. Fixes #121
Oh, I just realised that this only works on Firefox...
I've added Alt+ScrollWheel zooming, which zooms towards the mouse, i.e. keeps the point at the mouse anchored on the canvas if possible.
I used https://stackoverflow.com/questions/33083484/on-ctrlmousewheel-event and https://www.gavsblog.com/blog/find-closest-number-in-array-javascript (I could have done the second one myself but I wanted to make it sure it was clean), should I credit those? This could be improves by zooming into the point where the mouse is hovered, but this works for now. Fixes #121