Skip to content
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

Fix a regression, from PR 5356, that breaks all scrolling in PresentationMode #6524

Merged
merged 1 commit into from
Oct 13, 2015
Merged

Fix a regression, from PR 5356, that breaks all scrolling in PresentationMode #6524

merged 1 commit into from
Oct 13, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

This regressed in PR #5356.

Rather than just backing out the offending code, this patch restores scrolling in PresentationMode by making the overflow: hidden; check optional and letting the callers that need it (e.g. PDFFindController) opt-in to use it.

…tionMode

*This regressed in PR 5356.*

Rather than just backing out the offending code, this patch restores scrolling in PresentationMode by making the `overflow: hidden;` check optional and letting the callers that need it (e.g. `PDFFindController`) opt-in to use it.
@timvandermeij timvandermeij self-assigned this Oct 13, 2015
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/1465e3324dcc0c5/output.txt

* @param {Object} element - The element to be visible.
* @param {Object} spot - An object with optional top and left properties,
* specifying the offset from the top left edge.
* @param {boolean} skipOverflowHiddenElements - Ignore elements that have
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For clarity Ignore elements... should probably be Ignore DOM elements... instead.
@timvandermeij If you agree, I'll push an updated patch!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually think that's clear enough (especially from the overflow:hidden part, which indicates DOM elements), but if you want you can always create a new PR to improve the comment.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you think this is fine, I won't bother changing it now that the PR has already landed.
Thanks for reviewing/merging :-)

@timvandermeij
Copy link
Contributor

I can confirm that this fixes both scrolling in presentation mode and the original issue that Rob's PR fixed. The code is also cleaner in my opinion. Thank you!

timvandermeij added a commit that referenced this pull request Oct 13, 2015
…ng-regression-fix

Fix a regression, from PR 5356, that breaks all scrolling in PresentationMode
@timvandermeij timvandermeij merged commit b48512f into mozilla:master Oct 13, 2015
@Snuffleupagus Snuffleupagus deleted the presentation-mode-scrolling-regression-fix branch October 13, 2015 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants