Fixed speed frame removal delay bug, allow extending pagination timeout

This commit is contained in:
Essem 2022-02-06 01:12:04 -06:00
parent 26741e8c6c
commit 7536352858
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
4 changed files with 15 additions and 3 deletions

View file

@ -94,6 +94,10 @@ Napi::Value Speed(const Napi::CallbackInfo &info) {
for (list<Image>::iterator i = frames.begin(); i != frames.end(); ++i) {
int index = distance(frames.begin(), i);
if (index >= (int)old_delays.size()) {
old_delays.resize(index+1);
old_delays[index] = old_delays[index-1];
}
i->animationDelay(old_delays[index]);
}