Commit a6bb7f0f authored by Raine Makelainen's avatar Raine Makelainen

Merge branch 'jb36210' into 'master'

[embedlite-components] Report orientation change for all docshells. Fixes JB#36210

Turns out that sailfish-browser regressed due to this when
orientation change and switching tab was executed right after each
other.

See merge request !25
parents d2b74d00 7b7c92e2
......@@ -43,13 +43,6 @@ OrientationChangeHandler.prototype = {
handleOrientationChange: function(evt) {
let that = this;
// Report orientation change only for the active doc shell.
// Chrome / embedder side controls if doc shell is active or not (e.i. tab active).
if (!that.docShell || !that.docShell.isActive) {
return;
}
let newOrientation = that._targetWindow.screen.mozOrientation;
let fullSwitch = (newOrientation.split("-")[0] ==
that.lastOrientation.split("-")[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment