allows zooming and viewport changing in fabricjs