diff options
| author | madelinegr <mgriswold99@gmail.com> | 2019-06-07 17:37:25 -0400 |
|---|---|---|
| committer | madelinegr <mgriswold99@gmail.com> | 2019-06-07 17:37:25 -0400 |
| commit | cd15824429fbac94c8342af15acb7ec472506715 (patch) | |
| tree | a774954c16064b498c9099f882ac7713a8a1713c /src/client/views/presentationview/PresentationView.tsx | |
| parent | 213cd917b20a8955ebfa0a4127e2853614314087 (diff) | |
Fade After Presented Done
Diffstat (limited to 'src/client/views/presentationview/PresentationView.tsx')
| -rw-r--r-- | src/client/views/presentationview/PresentationView.tsx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/client/views/presentationview/PresentationView.tsx b/src/client/views/presentationview/PresentationView.tsx index e996765f0..efc333ee3 100644 --- a/src/client/views/presentationview/PresentationView.tsx +++ b/src/client/views/presentationview/PresentationView.tsx @@ -190,6 +190,11 @@ export class PresentationView extends React.Component<PresViewProps> { key.opacity = 0; } } + if (selectedButtons[buttonIndex.FadeAfter]) { + if (this.childrenDocs.indexOf(key) < index) { + key.opacity = 0.5; + } + } }); } @@ -197,12 +202,20 @@ export class PresentationView extends React.Component<PresViewProps> { this.presElementsMappings.forEach((presElem: PresentationElement, key: Doc) => { let selectedButtons: boolean[] = presElem.selected; if (selectedButtons[buttonIndex.HideAfter]) { - if (this.childrenDocs.indexOf(key) <= index) { + if (this.childrenDocs.indexOf(key) >= index) { + console.log("CAlled this right"); + key.opacity = 1; + } + } + if (selectedButtons[buttonIndex.FadeAfter]) { + if (this.childrenDocs.indexOf(key) >= index) { key.opacity = 1; } } if (selectedButtons[buttonIndex.HideTillPressed]) { if (this.childrenDocs.indexOf(key) > index) { + console.log("KeyIndex: ", this.childrenDocs.indexOf(key)); + console.log("Cur index: ", index); key.opacity = 0; } } |
