()
| 288 | // handles viewport changes, redraws all fitties, but only does so after a timeout |
| 289 | let resizeDebounce = null; |
| 290 | const onWindowResized = () => { |
| 291 | w.clearTimeout(resizeDebounce); |
| 292 | resizeDebounce = w.setTimeout(redrawAll(DrawState.DIRTY_LAYOUT), fitty.observeWindowDelay); |
| 293 | }; |
| 294 | |
| 295 | // define observe window property, so when we set it to true or false events are automatically added and removed |
| 296 | const events = ['resize', 'orientationchange']; |
nothing calls this directly
no test coverage detected
searching dependent graphs…