Remove full window dragging hack

It's more trouble than it's worth really. For one, it doesn't work in
brady bunch mode.
fix-builder
Saúl Ibarra Corretgé 4 years ago committed by Hristo Terezov
parent dc22d9f5a6
commit 1bd80139f7
  1. 21
      app/features/conference/components/Conference.js
  2. 6
      app/index.html
  3. 1
      main.js

@ -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.
*

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

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

Loading…
Cancel
Save