aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index fbad39880..17f65c7a6 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -111,14 +111,13 @@ class Viewer extends React.Component<IViewerProps> {
// if deselected, render images in place of pdf
if (wasSelected && !this.props.parent.props.active()) {
this.saveThumbnail();
- this._pointerEvents = "all";
}
// if selected, render pdf
else if (!wasSelected && this.props.parent.props.active()) {
this.renderPages(this.startIndex, this.endIndex, true);
- this._pointerEvents = "none";
}
wasSelected = this.props.parent.props.active();
+ this._pointerEvents = wasSelected ? "none" : "all";
},
{ fireImmediately: true }
);