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

WebView2: Enable/disable platform default zooming shortcuts, closes #569 #574

Merged
merged 7 commits into from
May 15, 2022

Conversation

JensMertelmeyer
Copy link
Contributor

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

By default, platform default zoom is disabled. This will also disable zooming by trackpad or touchscreen which was previously not the case.

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
  • I have added a convincing reason for adding this feature, if necessary

Other information

I absolutely agree with wry's approach to have default zooming disabled by default. However, I think there are many valid use cases where it makes sense to have the option to enable it.

Thank you for considering.

@JensMertelmeyer JensMertelmeyer requested a review from a team May 5, 2022 19:48
@JensMertelmeyer JensMertelmeyer requested a review from a team as a code owner May 5, 2022 19:48
Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

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

Thanks, just some nitpicks to make it more consistent with our style

.changes/allow-zooming.md Outdated Show resolved Hide resolved
src/webview/mod.rs Outdated Show resolved Hide resolved
src/webview/mod.rs Outdated Show resolved Hide resolved
src/webview/webview2/mod.rs Outdated Show resolved Hide resolved
@amrbashir amrbashir merged commit 494a110 into tauri-apps:dev May 15, 2022
@github-actions github-actions bot mentioned this pull request May 15, 2022
@augustinharter
Copy link

I'm new to tauri; was this feature successfully added and if so how can i enable the zoom shortcuts for my App?

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