Merge pull request #519 from responsively-org/hotfix/flip-button

Hotfix / Fixed the broken global flip button
This commit is contained in:
Manoj Vivek 2020-10-16 20:18:38 +05:30 committed by GitHub
commit 116fa6b9ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -402,13 +402,6 @@ class WebView extends Component {
this.webviewRef.current.send('scrollUpMessage');
};
processTiltEvent = async ({deviceId}) => {
if (deviceId && this.props.device.id !== deviceId) {
return;
}
this._flipOrientation();
};
processScreenshotEvent = async ({
now,
fullScreen = true,
@ -443,7 +436,8 @@ class WebView extends Component {
this.setState({screenshotInProgress: false});
};
processFlipOrientationEvent = ({deviceId}) => {
processFlipOrientationEvent = (message = {}) => {
const {deviceId} = message;
if (deviceId && this.props.device.id !== deviceId) {
return;
}