Skip to content

Commit

Permalink
Reset resize counter when viewport size changes
Browse files Browse the repository at this point in the history
To prevent the page from triggering the emergency stop at
resizeIdle(), we reset the resize counter when the viewport is resized.

Fixes: #300
  • Loading branch information
rodarima committed Nov 14, 2024
1 parent c2629b5 commit 318d1f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dw/layout.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 318d1f1

Please sign in to comment.