contextMenuDisplay -> contextMenuDisplayed
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
4f3fe3d236
commit
d0dea91e92
1 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ export default class ImageView extends React.Component {
|
||||||
translationX: 0,
|
translationX: 0,
|
||||||
translationY: 0,
|
translationY: 0,
|
||||||
moving: false,
|
moving: false,
|
||||||
contextMenuDisplay: false,
|
contextMenuDisplayed: false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -179,13 +179,13 @@ export default class ImageView extends React.Component {
|
||||||
|
|
||||||
onOpenContextMenu = (ev) => {
|
onOpenContextMenu = (ev) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
contextMenuDisplay: true,
|
contextMenuDisplayed: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onCloseContextMenu = () => {
|
onCloseContextMenu = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
contextMenuDisplay: false,
|
contextMenuDisplayed: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ export default class ImageView extends React.Component {
|
||||||
|
|
||||||
renderContextMenu() {
|
renderContextMenu() {
|
||||||
let contextMenu = null;
|
let contextMenu = null;
|
||||||
if (this.state.contextMenuDisplay) {
|
if (this.state.contextMenuDisplayed) {
|
||||||
contextMenu = (
|
contextMenu = (
|
||||||
<ContextMenu
|
<ContextMenu
|
||||||
{...aboveLeftOf(this.contextMenuButton.current.getBoundingClientRect())}
|
{...aboveLeftOf(this.contextMenuButton.current.getBoundingClientRect())}
|
||||||
|
|
Loading…
Reference in a new issue