DownloadsExtension icon indicating copy to clipboard operation
DownloadsExtension copied to clipboard

All past completed downloads are animated when the popup opens

Open tophf opened this issue 3 years ago • 3 comments

chrome_2022-02-12_09-07-50

I guess it can be fixed by using window.addEventListener('load', enableAnimations) event listener that adds the animation rule or sets some property in the store.

tophf avatar Feb 12 '22 06:02 tophf

This issue is on the roadmap but I'm currently working on porting the extension to manifest v3 which involves rewriting a significant amount of the backend logic. I'll definitely be looking at sorting this either in v3 or a subsequent release.

JamesCoyle avatar Feb 12 '22 13:02 JamesCoyle

This is caused by download.state (where download is a DownloadItem), with a dynamic class of state. This means that all items gain the class on load.

Explosion-Scratch avatar Apr 28 '22 21:04 Explosion-Scratch

I tried to implement a timeSinceLoad store in svelte and then test the time since the extension was loaded for the state but then I realized that it would just push the animation back 200ms. It'll probably need something a bit more complex, e.g listeners with .classList.add/remove

Explosion-Scratch avatar Apr 28 '22 21:04 Explosion-Scratch