I've made a draggable stage with kineticjs and also made a zoom function by means of scaling the canvas.
When using the zoom factor, the canvas is zooming to the center of the screen. But after dragging the canvas and using the zoom function, the canvas is still zooming to the point that was on the center at the beginning but now is dragged aside.
What I want is to zoom to the new point that is on the center of the screen after dragging.
Can anyone please explain how to handle this?
Thanks in advance!