Skip to content

Properly disable presentation mode when the viewer is embedded #3641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2013
Merged

Properly disable presentation mode when the viewer is embedded #3641

merged 1 commit into from
Sep 17, 2013

Conversation

Snuffleupagus
Copy link
Collaborator

Currently presentation mode isn't properly disabled when the viewer is embedded in a web page.
Steps to reproduce:

  1. Open http://people.mozilla.com/~ydelendik/presentations/ecma5.html#/2.
  2. Click anywhere within the PDF.js user interface.
  3. Enter presentation mode, by using the keyboard shortcut Ctrl+Alt+P. (Note that the toolbar button isn't visible, but that's only because the PDF.js UI is too small.) EDIT: Now that the secondary toolbar has landed, the presentation mode button will be available from it, thus making it a lot easier for the user to enter a non-working presentation mode.

Expected result: Presentation mode should either work, or be disabled.

Actual result: (A picture is worth a thousand words...)
presentationmode_embedded

This PR adds a check in PDFView.supportsFullscreen to disable presentation mode when the viewer is embedded, to avoid the above issue.

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Sep 4, 2013

From: Bot.io (Linux)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.21.233.14:8877/bd4d9ead2f1e11a/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 4, 2013

@Snuffleupagus
Copy link
Collaborator Author

Rebased to avoid merge conflicts.

brendandahl added a commit that referenced this pull request Sep 17, 2013
…tionMode-when-embedded

Properly disable presentation mode when the viewer is embedded
@brendandahl brendandahl merged commit c270d7e into mozilla:master Sep 17, 2013
@Snuffleupagus Snuffleupagus deleted the properly-disable-presentationMode-when-embedded branch September 17, 2013 22:58
yurydelendik added a commit to yurydelendik/pdf.js that referenced this pull request Mar 27, 2014
Snuffleupagus added a commit that referenced this pull request Mar 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants