Handle zooming edge-cases better.