Fixed zooming behavior for mouse and touch