Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix zoom-out on an image [#131080]#134706

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mjbvz merged 1 commit intomicrosoft:mainfromcyntler:fix-safari-zoom-out
Oct 15, 2021
Merged

Fix zoom-out on an image [#131080]#134706

mjbvz merged 1 commit intomicrosoft:mainfromcyntler:fix-safari-zoom-out
Oct 15, 2021

Conversation

cyntler
Copy link
Contributor

This PRfixes#131080.

@@ -59,7 +63,7 @@
];

const settings = getSettings();
const isMac = settings.isMac;
const isMac = settings.isMac || isMacNavigator();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why isn'tsettings.isMac on its own enough?

Copy link
ContributorAuthor

@cyntlercyntlerOct 11, 2021
edited
Loading

Choose a reason for hiding this comment

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

@mjbvz VS Code outside of Electron also works in the browser, right?
Running in a browser, even on MacOS,settings.isMac will return false. I think we should add browser side checking as well. Besides as I tested, this fixes the zoom out bug in Chrome.

function isMac(): boolean {if (typeof process === 'undefined') {return false;}return process.platform === 'darwin';}

It's function body ofsettings.isMac value.
I assume,process isn't available on the browser side.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, let's removeisMac then so there's only source of truth here

Copy link
ContributorAuthor

@cyntlercyntlerOct 12, 2021
edited
Loading

Choose a reason for hiding this comment

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

@mjbvz Ok, so do you think that we can only stay when checking isMacNavigator and isMac can be thrown out completely?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, removesettings.isMac to use the new function instead. I believesettings.isMac is only used inside the webview

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@mjbvz Updated!

@mjbvzmjbvz added this to theOctober 2021 milestoneOct 11, 2021
@mjbvzmjbvz merged commita12e9cd intomicrosoft:mainOct 15, 2021
@mjbvz
Copy link
Collaborator

Thanks! This will be in the next insiders build

cyntler reacted with heart emoji

@cyntlercyntler deleted the fix-safari-zoom-out branchOctober 15, 2021 22:09
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsNov 29, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mjbvzmjbvzmjbvz left review comments

Assignees

@mjbvzmjbvz

Projects
None yet
Milestone
October 2021
Development

Successfully merging this pull request may close these issues.

Unable to zoom out on an image
2 participants
@cyntler@mjbvz

[8]ページ先頭

©2009-2025 Movatter.jp