Skip to content

Commit 9494229

Browse files
committed
Prevent ZoomFactor from reverting to 100% when the URL changes
1 parent 6c6f44c commit 9494229

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/WinWebDiffLib/WebDiffWindow.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ class CWebDiffWindow : public IWebDiffWindow
100100
WebDiffEvent ev;
101101
ev.type = event;
102102
ev.pane = i;
103-
if (event == WebDiffEvent::ZoomFactorChanged)
103+
if (event == WebDiffEvent::SourceChanged)
104+
{
105+
m_webWindow[ev.pane].SetZoom(m_zoom);
106+
}
107+
else if (event == WebDiffEvent::ZoomFactorChanged)
104108
{
105109
m_zoom = m_webWindow[ev.pane].GetZoom();
106110
for (int pane = 0; pane < m_nPanes; ++pane)

0 commit comments

Comments
 (0)