All examples By author By category About


Zoom Center

By setting, you can control the focal point of the zoom behavior on mousewheel. The default is null, which sets the focal point to the current mouse position. In this example, the center is instead fixed to the center of the canvas, such that on zoom, the center of the canvas stays fixed.