Merge pull request #3497 from Snuffleupagus/regression-3447
Fixes regression that cause scrolling using spacebar to break in Firefox
This commit is contained in:
commit
12d9b6570b
@ -227,7 +227,11 @@ limitations under the License.
|
|||||||
data-l10n-id="page_rotate_cw" ></menuitem>
|
data-l10n-id="page_rotate_cw" ></menuitem>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
||||||
|
<!--#if (FIREFOX || MOZCENTRAL) -->
|
||||||
|
<!-- <div id="viewerContainer"> -->
|
||||||
|
<!--#else -->
|
||||||
<div id="viewerContainer" tabindex="0">
|
<div id="viewerContainer" tabindex="0">
|
||||||
|
<!--#endif -->
|
||||||
<div id="viewer" contextmenu="viewerContextMenu"></div>
|
<div id="viewer" contextmenu="viewerContextMenu"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -950,7 +950,9 @@ var PDFView = {
|
|||||||
// unless the viewer is embedded in another page.
|
// unless the viewer is embedded in another page.
|
||||||
if (window.parent === window) {
|
if (window.parent === window) {
|
||||||
PDFView.container.focus();
|
PDFView.container.focus();
|
||||||
PDFView.container.blur();
|
//#if (FIREFOX || MOZCENTRAL)
|
||||||
|
// PDFView.container.blur();
|
||||||
|
//#endif
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user