diff options
author | bobzel <zzzman@gmail.com> | 2020-10-16 01:24:28 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-16 01:24:28 -0400 |
commit | 51066af7ddc8dc890ed67858579227f8484e7263 (patch) | |
tree | d625ec738fab6e63b3c77c28ee02877386c006ac /src | |
parent | 375adfd63ec8a90d2b6ce146d581afdf1599e731 (diff) |
fixed duration of slides so that 100ms works.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/PresBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx index d03fbc03f..8e3679452 100644 --- a/src/client/views/nodes/PresBox.tsx +++ b/src/client/views/nodes/PresBox.tsx @@ -407,7 +407,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema> activeItem = Cast(this.childDocs[this.itemIndex], Doc, null); targetDoc = Cast(activeItem.presentationTargetDoc, Doc, null); duration = NumCast(activeItem.presDuration) + NumCast(activeItem.presTransition); - if (duration <= 100) { duration = 2500; } + if (duration < 100) { duration = 2500; } if (NumCast(targetDoc.lastFrame) > 0) { for (var f = 0; f < NumCast(targetDoc.lastFrame); f++) { await timer(duration / NumCast(targetDoc.lastFrame)); |