Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
perfectdicky
YGOProUnity_V2
Commits
e8ea030e
Commit
e8ea030e
authored
Apr 11, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the first result dont appear in hi-res screen
parent
90026d27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Assets/SibylSystem/MonoHelpers/SuperScrollView.cs
Assets/SibylSystem/MonoHelpers/SuperScrollView.cs
+2
-2
No files found.
Assets/SibylSystem/MonoHelpers/SuperScrollView.cs
View file @
e8ea030e
...
...
@@ -241,12 +241,12 @@ public class SuperScrollView
caculateMoveFloat
();
float
now
=
panel
.
clipOffset
.
y
+
moveFloat
;
scrollBar
.
value
=
now
/
maxFloat
;
float
min
=
-
panel
.
clipOffset
.
y
-
500
;
float
min
=
-
panel
.
clipOffset
.
y
-
(
Screen
.
height
/
2
+
100
)
;
if
(
Math
.
Abs
(
min
-
lastMin
)
>
40
||
Items
.
Count
<
100
||
lastForce
)
{
lastForce
=
false
;
lastMin
=
min
;
float
max
=
-
panel
.
clipOffset
.
y
+
panel
.
GetViewSize
().
y
+
500
;
float
max
=
-
panel
.
clipOffset
.
y
+
panel
.
GetViewSize
().
y
+
(
Screen
.
height
/
2
+
100
)
;
for
(
int
i
=
0
;
i
<
Items
.
Count
;
i
++)
{
if
(
i
>=
(
int
)(
min
/
heightOfEach
)
&&
i
<=
(
int
)(
max
/
heightOfEach
))
...
...
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