From 318d1f14e699e8dd38b73fbe2f8da1c0586ccab7 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 14 Nov 2024 19:56:41 +0100 Subject: Reset resize counter when viewport size changes To prevent the page from triggering the emergency stop at resizeIdle(), we reset the resize counter when the viewport is resized. Fixes: https://github.com/dillo-browser/dillo/issues/300 --- dw/layout.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/dw/layout.cc b/dw/layout.cc index ed6f55db..33c3e75d 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -1329,6 +1329,7 @@ void Layout::viewportSizeChanged (View *view, int width, int height) canvasHeightGreater = false; // reset value here viewportWidth = width; viewportHeight = height; + resizeCounter = 0; containerSizeChanged (); DBG_OBJ_SET_SYM ("canvasHeightGreater", -- cgit v1.2.3