The zoom lock tool is available as a sidebar button tool and allows you to lock the current map zoom level during zooming. This works for both, vector and raster maps.
The zoom lock is useful if you want to zoom into map details (for instance small texts or symbols). As an alternative, the magnifier tool can be used for zooming into details.
The following video shows how to use the zoom lock: