Zoom centering at mouse position with mouse wheel
Right now the diagram ignores where you point the mouse pointer when spinning the wheel / swiping the touchpad, so the diagram is always scaling to the left top corner, which is counter-intuitive UX compared to, for example, Google Maps.
Hello!
I managed to implement this
Example:

Diff: https://github.com/projectstorm/react-diagrams/compare/master...JokerNN:master
onWheel handler became huge so maybe it's better to have it as class method
Also important to mention that swapping scale and transition made things mach more easier.
It uses clientWidth, which forces reflow, but I have no idea how to avoid it :(
Hope this help @dylanvorster
This is super legit, could you open up a PR!
Sure: https://github.com/projectstorm/react-diagrams/pull/87
Let it be known that @JokerNN is awesome, this is now available in 3.1.0