Skip to content

Fixed: Image preview should not zoom on first click if unfocused#82074

Merged
mjbvz merged 15 commits intomicrosoft:masterfrom
MartinBrathen:master
Oct 14, 2019
Merged

Fixed: Image preview should not zoom on first click if unfocused#82074
mjbvz merged 15 commits intomicrosoft:masterfrom
MartinBrathen:master

Conversation

@MartinBrathen
Copy link
Contributor

@mjbvz I believe this should solve issue #81877

@msftclas
Copy link

msftclas commented Oct 8, 2019

CLA assistant check
All CLA requirements met.

@MartinBrathen
Copy link
Contributor Author

Pressed the "Update branch" button, now test are not passing, will try to fix somehow.

@MartinBrathen
Copy link
Contributor Author

I removed an unnecessary state variable.

In this branch I removed the 'mousedown' listener and the usage of message passing as well. Sadly it introduces a bug where the user has to click twice if the image preview is not focused by clicking on the preview. I do not currently know of a way to check how the preview was focused.

@MartinBrathen MartinBrathen requested a review from mjbvz October 10, 2019 12:57
@mjbvz mjbvz added this to the October 2019 milestone Oct 14, 2019
@mjbvz mjbvz merged commit 9048856 into microsoft:master Oct 14, 2019
@mjbvz
Copy link
Collaborator

mjbvz commented Oct 14, 2019

Thanks! Will be in the next insiders build and is scheduled to go out with VS Code 1.40

@MartinBrathen
Copy link
Contributor Author

Cool! Thank you :)

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants