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

Prevents document zooming if still scrolling and meta keys pressed (Issue #7022) #7097

Merged
merged 1 commit into from
Apr 7, 2016
Merged

Prevents document zooming if still scrolling and meta keys pressed (Issue #7022) #7097

merged 1 commit into from
Apr 7, 2016

Conversation

ManasJayanth
Copy link
Contributor

Disables zooming when the stream of events that don't have meta/ctrl
keys active at the outset, for 100ms

[UPDATE] 1000ms

@ManasJayanth ManasJayanth changed the title Fix for #7022 Prevents document zooming if still scrolling and meta keys pressed (Issue #7022) Mar 23, 2016
@@ -1873,12 +1873,12 @@ window.addEventListener('pagechange', function pagechange(evt) {
}
}, true);

var zoomDisabled = false, zoomDisablerId;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: zoomDisablerId seems to me like a slightly strange name, how about zoomDisabledTimeout instead?

@timvandermeij
Copy link
Contributor

This PR needs a rebase after recently landed PRs. Furthermore, please change the commit message to be equal to the PR message, since the latter is much more descriptive.

@ManasJayanth
Copy link
Contributor Author

@timvandermeij Done! Ready for review

@brendandahl brendandahl merged commit f351eb2 into mozilla:master Apr 7, 2016
@brendandahl
Copy link
Contributor

Works nicely, thanks!

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

4 participants