diff --git a/src/components/views/elements/ImageView.tsx b/src/components/views/elements/ImageView.tsx index 3674e91a4a..79e657c682 100644 --- a/src/components/views/elements/ImageView.tsx +++ b/src/components/views/elements/ImageView.tsx @@ -83,15 +83,15 @@ export default class ImageView extends React.Component { }; } - contextMenuButton = createRef(); - focusLock = createRef(); + private contextMenuButton = createRef(); + private focusLock = createRef(); - initX = 0; - initY = 0; - lastX = 0; - lastY = 0; - previousX = 0; - previousY = 0; + private initX = 0; + private initY = 0; + private lastX = 0; + private lastY = 0; + private previousX = 0; + private previousY = 0; componentDidMount() { // We have to use addEventListener() because the listener