I have checked in my setZoom function which is canvas zoom I made mistake when during the zoom i have set canvas width and height for help of the Math.Round but when i remove Math.round its perfect work