Remove full window dragging hack

It's more trouble than it's worth really. For one, it doesn't work in
brady bunch mode.
This commit is contained in:
Saúl Ibarra Corretgé 2018-12-19 09:48:20 +01:00 committed by Hristo Terezov
parent dc22d9f5a6
commit 1bd80139f7
3 changed files with 0 additions and 28 deletions

View File

@ -330,8 +330,6 @@ class Conference extends Component<Props, State> {
* @returns {void}
*/
_onVideoConferenceJoined(conferenceInfo: Object) {
setupDragAreas(this._api.getIFrame());
this._setAvatarURL(this.props._avatarURL);
this._setEmail(this.props._email);
this._setName(this.props._name);
@ -376,25 +374,6 @@ class Conference extends Component<Props, State> {
}
/**
* Inject some style into the iframe so everything except the filmstrip, chat,
* buttons or any input is draggable.
*
* @param {Object} iframe - Reference to the iframe where the drag areas will
* be set.
* @returns {void}
*/
function setupDragAreas(iframe) {
const injectStyle = document.createElement('style');
injectStyle.type = 'text/css';
injectStyle.textContent
= 'body { -webkit-app-region: drag; }'
+ 'button, input { -webkit-app-region: no-drag }'
+ '#chatconversation, .filmstrip { -webkit-app-region: no-drag; }';
iframe.contentDocument.head.appendChild(injectStyle);
}
/**
* Maps (parts of) the redux state to the React props.
*

View File

@ -5,12 +5,6 @@
body, html {
overflow: hidden;
}
body {
-webkit-app-region: drag
}
button, input {
-webkit-app-region: no-drag
}
</style>
</head>
<body>

View File

@ -132,7 +132,6 @@ function createJitsiMeetWindow() {
minWidth: 800,
minHeight: 600,
show: false,
titleBarStyle: 'hidden',
webPreferences: {
nativeWindowOpen: true
}