aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/presentationview/PresentationView.tsx
diff options
context:
space:
mode:
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;
}
}