Skip to content

Commit

Permalink
Don't debounce() for so long on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Aug 12, 2022
1 parent 751b546 commit eb41aff
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion inst/www/shared/shiny.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/www/shared/shiny.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/www/shared/shiny.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/www/shared/shiny.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion srcts/src/shiny/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ function initShiny(windowShiny: Shiny): void {

// TODO: do we need a polyfill for ResizeObserver?
if (!$(el).data("shiny-resize-observer")) {
const onResize = debounce(500, handleResize);
const onResize = debounce(100, handleResize);
const ro = new ResizeObserver(() => onResize(false));

ro.observe(el);
Expand Down

0 comments on commit eb41aff

Please sign in to comment.