This is a simple vanilla JavaScript example of panning a canvas by clicking and dragging, and zooming to a point by placing your cursor on that point and scrolling the mouse wheel.
Example for zooming and panning in an html canvas
This is a simple vanilla JavaScript example of panning a canvas by clicking and dragging, and zooming to a point by placing your cursor on that point and scrolling the mouse wheel.
Example for zooming and panning in an html canvas