diff options
author | Saúl Ibarra Corretgé <s@saghul.net> | 2018-12-19 09:48:20 +0100 |
---|---|---|
committer | Hristo Terezov <hristo@jitsi.org> | 2018-12-27 16:56:51 +0000 |
commit | 1bd80139f7681c322255fb14c0840aeee61a78b6 (patch) | |
tree | 851535d4bfcc2fe511cf0cc276639503e3174712 /app | |
parent | dc22d9f5a622dc25381b1826400c5789a086bace (diff) |
Remove full window dragging hack
It's more trouble than it's worth really. For one, it doesn't work in
brady bunch mode.
Diffstat (limited to 'app')
-rw-r--r-- | app/features/conference/components/Conference.js | 21 | ||||
-rw-r--r-- | app/index.html | 6 |
2 files changed, 0 insertions, 27 deletions
diff --git a/app/features/conference/components/Conference.js b/app/features/conference/components/Conference.js index 1ee0ea5..6fbab70 100644 --- a/app/features/conference/components/Conference.js +++ b/app/features/conference/components/Conference.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); @@ -377,25 +375,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. * * @param {Object} state - The redux state. diff --git a/app/index.html b/app/index.html index 1df451e..405d3ac 100644 --- a/app/index.html +++ b/app/index.html @@ -5,12 +5,6 @@ body, html { overflow: hidden; } - body { - -webkit-app-region: drag - } - button, input { - -webkit-app-region: no-drag - } </style> </head> <body> |