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:
parent
dc22d9f5a6
commit
1bd80139f7
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue