Skip to content

[Navigator] Vertically hide disabled scenes and use pointerEvents="none" - #2104

Closed
ide wants to merge 1 commit into
react:masterfrom
ide:scene-hiding
Closed

ide wants to merge 1 commit into
react:masterfrom
ide:scene-hiding

Conversation

@ide

@ide ide commented Jul 23, 2015

Copy link
Copy Markdown
Contributor

Hides disabled scenes using top instead of left, which fixes a bug with the native UITabBar. When the UITabBar's width is zeroed because the scene has left: SCREEN_WIDTH, right: 0 applied, this triggers a bug with the kerning of the tab titles. Instead, zeroing the height by setting top: SCREEN_HEIGHT avoids the bug.

Also applies pointerEvents="none" to disabled scenes so that views in the off-screen scenes definitely don't receive touches, which was occurring before.

Fixes #1401, fixes #2011

Test Plan: Display a UITabBar and push a scene entirely over it. Pop the scene and see that the the tab titles are not scrunched.

Thoroughly test the Navigator example in the UIExplorer and see that scenes properly receive touch events when they are visible.

Hides disabled scenes using `top` instead of `left`, which fixes a bug with the native UITabBar. When the UITabBar's width is zeroed because the scene has `left: SCREEN_WIDTH, right: 0` applied, this triggers a bug with the kerning of the tab titles. Instead, zeroing the height by setting `top: SCREEN_HEIGHT` avoids the bug.

Also applies `pointerEvents="none"` to disabled scenes so that views in the off-screen scenes definitely don't receive touches, which was occurring before.

Test Plan: Display a UITabBar and push a scene entirely over it. Pop the scene and see that the the tab titles are not scrunched.

Thoroughly test the Navigator example in the UIExplorer and see that scenes properly receive touch events when they are visible.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 23, 2015
@ericvicenti

Copy link
Copy Markdown
Contributor

Looks good to me

@ericvicenti

Copy link
Copy Markdown
Contributor

@facebook-github-bot import

@facebook-github-bot

Copy link
Copy Markdown
Contributor

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/458390294322071/int_phab to review.

@brentvatne

Copy link
Copy Markdown
Collaborator

Awesome, nice one @ide 😄

@ide ide closed this in bf7e2a8 Jul 27, 2015
@ide
ide deleted the scene-hiding branch July 28, 2015 05:23
FalseLobster pushed a commit to FalseLobster/react-native that referenced this pull request Jul 3, 2024
* Replace `--frozen-lockfile` with --immutable

* Remove `apple-install-dependencies

* Update  apple-xcode-select

* Use macos-13-arm64

* Build Debug only

* Use custom Xcodebuild template

* Separate build & test

* Use Codeql v2

* Update template syntax

* try major refactor

* rename apple-job-publish

* try big 2

* Fix Hermes

* Comment out test temporarily

* Fix visionOS + New Arch + JSC

* Move iOS down, visionOS -> xrOS

* Comment out failing jobs

* Update build-test-rntester.yml

* Move scripts to scripts folder

* Update RNTA script for RNM use

* Update VM image per notice

* Update gitignore

* Don't test on visionOS

* fix use out-of-scope memory warning (react#41441)

Summary:
Pull Request resolved: react#41441

changelog: [internal]

Reviewed By: cipolleschi

Differential Revision: D51233760

fbshipit-source-id: 5fc7ab22220e3d80729243e715e22e85e3ba7afa

* Retry xcode tests on failure

---------

Co-authored-by: Samuel Susla <samuelsusla@meta.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

4 participants