Fixed speed frame removal delay bug, allow extending pagination timeout
This commit is contained in:
parent
26741e8c6c
commit
7536352858
4 changed files with 15 additions and 3 deletions
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue