core: reset scroll in window before zooming on a merged buffer (bug #38207)