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: swipe event emission on macOS #37946

Merged
merged 1 commit into from Apr 13, 2023
Merged

fix: swipe event emission on macOS #37946

merged 1 commit into from Apr 13, 2023

Conversation

codebytere
Copy link
Member

Description of Change

Closes #37628.
Refs #35603

Fixes an issue where the 'swipe' event wasn't being emitted properly on macOS. This happened as a result of #35603, which removed our OverrideNSWindowContentView logic. This logic replaced BridgedContentView in ElectronNSWindow with our own logic, and enabled our implementation of swipeWithEvent to take precedence. After the removal of that code, the swipeWithEvent implementation in BridgedContentView would always be called regardless of our override. Fix this by forcing our implementation to be called instead.

Checklist

Release Notes

Notes: Fixed an issue where the 'swipe' event wasn't being emitted properly on macOS.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/24-x-y PR should also be added to the "24-x-y" branch. target/25-x-y PR should also be added to the "25-x-y" branch. labels Apr 12, 2023
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Apr 12, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 13, 2023
@codebytere codebytere merged commit fceeb64 into main Apr 13, 2023
13 checks passed
@codebytere codebytere deleted the fix-swipe-with-event branch April 13, 2023 09:28
@release-clerk
Copy link

release-clerk bot commented Apr 13, 2023

Release Notes Persisted

Fixed an issue where the 'swipe' event wasn't being emitted properly on macOS.

@trop
Copy link
Contributor

trop bot commented Apr 13, 2023

I have automatically backported this PR to "24-x-y", please check out #37965

@trop trop bot added in-flight/24-x-y and removed target/24-x-y PR should also be added to the "24-x-y" branch. labels Apr 13, 2023
@trop
Copy link
Contributor

trop bot commented Apr 13, 2023

I have automatically backported this PR to "25-x-y", please check out #37966

@trop trop bot added in-flight/25-x-y merged/25-x-y PR was merged to the "25-x-y" branch. merged/24-x-y PR was merged to the "24-x-y" branch and removed target/25-x-y PR should also be added to the "25-x-y" branch. in-flight/25-x-y in-flight/24-x-y labels Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/24-x-y PR was merged to the "24-x-y" branch merged/25-x-y PR was merged to the "25-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: BrowserWindows.on('swipe') doesn't trigger when swiping on BrowserViews
2 participants