aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/presentationview/PresentationView.tsx
diff options
context:
space:
mode:
authormadelinegr <mgriswold99@gmail.com>2019-06-07 17:37:25 -0400
committermadelinegr <mgriswold99@gmail.com>2019-06-07 17:37:25 -0400
commitcd15824429fbac94c8342af15acb7ec472506715 (patch)
treea774954c16064b498c9099f882ac7713a8a1713c /src/client/views/presentationview/PresentationView.tsx
parent213cd917b20a8955ebfa0a4127e2853614314087 (diff)
Fade After Presented Done
Diffstat (limited to 'src/client/views/presentationview/PresentationView.tsx')
-rw-r--r--src/client/views/presentationview/PresentationView.tsx15
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;
}
}