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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
MyCard
YGOProUnity_V2
Commits
23cea112
Commit
23cea112
authored
Sep 04, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scroll
parent
28cd6ccc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
Assets/NGUI/Scripts/Interaction/UIScrollView.cs
Assets/NGUI/Scripts/Interaction/UIScrollView.cs
+25
-25
No files found.
Assets/NGUI/Scripts/Interaction/UIScrollView.cs
View file @
23cea112
...
@@ -320,31 +320,31 @@ public class UIScrollView : MonoBehaviour
...
@@ -320,31 +320,31 @@ public class UIScrollView : MonoBehaviour
mPanel
.
clipping
=
UIDrawCall
.
Clipping
.
ConstrainButDontClip
;
mPanel
.
clipping
=
UIDrawCall
.
Clipping
.
ConstrainButDontClip
;
// Auto-upgrade
// Auto-upgrade
if
(
movement
!=
Movement
.
Custom
&&
scale
.
sqrMagnitude
>
0.001f
)
//
if (movement != Movement.Custom && scale.sqrMagnitude > 0.001f)
{
//
{
if
(
scale
.
x
==
1f
&&
scale
.
y
==
0f
)
//
if (scale.x == 1f && scale.y == 0f)
{
//
{
movement
=
Movement
.
Horizontal
;
//
movement = Movement.Horizontal;
}
//
}
else
if
(
scale
.
x
==
0f
&&
scale
.
y
==
1f
)
//
else if (scale.x == 0f && scale.y == 1f)
{
//
{
movement
=
Movement
.
Vertical
;
//
movement = Movement.Vertical;
}
//
}
else
if
(
scale
.
x
==
1f
&&
scale
.
y
==
1f
)
//
else if (scale.x == 1f && scale.y == 1f)
{
//
{
movement
=
Movement
.
Unrestricted
;
//
movement = Movement.Unrestricted;
}
//
}
else
//
else
{
//
{
movement
=
Movement
.
Custom
;
//
movement = Movement.Custom;
customMovement
.
x
=
scale
.
x
;
//
customMovement.x = scale.x;
customMovement
.
y
=
scale
.
y
;
//
customMovement.y = scale.y;
}
//
}
scale
=
Vector3
.
zero
;
//
scale = Vector3.zero;
#if UNITY_EDITOR
//
#if UNITY_EDITOR
NGUITools
.
SetDirty
(
this
);
//
NGUITools.SetDirty(this);
#endif
//
#endif
}
//
}
// Auto-upgrade
// Auto-upgrade
if
(
contentPivot
==
UIWidget
.
Pivot
.
TopLeft
&&
relativePositionOnReset
!=
Vector2
.
zero
)
if
(
contentPivot
==
UIWidget
.
Pivot
.
TopLeft
&&
relativePositionOnReset
!=
Vector2
.
zero
)
...
...
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