Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
c687233d
Commit
c687233d
authored
Jan 23, 2025
by
DavidHuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控制权交给H5端
1、处理导航栏可能不存在的情况 2、解决了刷新多次的问题
parent
2e3a147d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
YHH5WebViewVC.swift
.../Classes/Modules/InteractionH5(与H5交互)/YHH5WebViewVC.swift
+5
-2
No files found.
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHH5WebViewVC.swift
View file @
c687233d
...
@@ -639,11 +639,11 @@ extension YHH5WebViewVC {
...
@@ -639,11 +639,11 @@ extension YHH5WebViewVC {
if
tag
.
contains
(
"1"
)
{
if
tag
.
contains
(
"1"
)
{
//隐藏
//隐藏
isHideNavigationBar
=
true
isHideNavigationBar
=
true
supportFullScreenSyn
(
"1"
)
//强制通屏
//
supportFullScreenSyn("1")//强制通屏
}
else
{
}
else
{
//不隐藏
//不隐藏
isHideNavigationBar
=
false
isHideNavigationBar
=
false
supportFullScreenSyn
(
"1"
)
//
supportFullScreenSyn("1")
}
}
gk_navigationBar
.
isHidden
=
isHideNavigationBar
gk_navigationBar
.
isHidden
=
isHideNavigationBar
}
}
...
@@ -769,6 +769,9 @@ extension YHH5WebViewVC {
...
@@ -769,6 +769,9 @@ extension YHH5WebViewVC {
extension
YHH5WebViewVC
:
UIScrollViewDelegate
{
extension
YHH5WebViewVC
:
UIScrollViewDelegate
{
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
if
isFullScreenFlag
,
scrollView
==
webview
.
scrollView
{
if
isFullScreenFlag
,
scrollView
==
webview
.
scrollView
{
printLog
(
"srollView 滚动事件"
)
if
scrollView
.
contentOffset
.
y
>
0
{
if
scrollView
.
contentOffset
.
y
>
0
{
var
alpha
=
scrollView
.
contentOffset
.
y
/
(
k_Height_NavigationtBarAndStatuBar
)
var
alpha
=
scrollView
.
contentOffset
.
y
/
(
k_Height_NavigationtBarAndStatuBar
)
if
alpha
>
1.0
{
if
alpha
>
1.0
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment