1
0
Fork 0
forked from OpenNeo/impress
impress/app/javascript/wardrobe-2020/components
Emi Matchu 60e9130891 Fix bug where changing tabs would *always* pause the outfit animations
We have a feature to check the movie's FPS, and pause it if it gets too
low, as a guard against especially low-performance movies. But this was
triggering in an *expected* case, where browsers intentionally throttle
interval events when a page is in the background (e.g. you switch to
another tab).

Now, our rendering is aware of page visibility: when the page is
hidden, don't bother rendering, and keep resetting the FPS counter
state, so that we can pick up with a fresh FPS counter when the page
comes back.
2024-06-12 17:05:53 -07:00
..
getVisibleLayers.js Run Prettier on all wardrobe-2020 JS 2023-10-24 16:45:49 -07:00
HangerSpinner.js Bundle wardrobe-2020 into the app 2023-10-23 19:05:08 -07:00
HTML5Badge.js Run Prettier on all wardrobe-2020 JS 2023-10-24 16:45:49 -07:00
ItemCard.js Run Prettier on all wardrobe-2020 JS 2023-10-24 16:45:49 -07:00
OutfitMovieLayer.js Fix bug where changing tabs would *always* pause the outfit animations 2024-06-12 17:05:53 -07:00
OutfitPreview.js Skip rendering layers without a usable image 2024-02-01 08:55:42 -08:00
OutfitThumbnail.js Use /outfits/1234 URLs in the editor 2023-10-24 17:29:07 -07:00
PaginationToolbar.js Set up eslint for wardrobe-2020 2023-11-02 18:11:07 -07:00
SpeciesColorPicker.js Optionally use local instance of impress-2020 during development 2024-01-28 07:00:29 -08:00
SquareItemCard.js Run Prettier on all wardrobe-2020 JS 2023-10-24 16:45:49 -07:00
useCurrentUser.js Normalize outfit data as we load it into wardrobe-2020 2023-11-02 17:12:59 -07:00
useOutfitAppearance.js Filter by Alt Style in item search and item appearance API calls 2024-02-01 04:58:30 -08:00
usePreferArchive.js Run Prettier on all wardrobe-2020 JS 2023-10-24 16:45:49 -07:00