Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 03cb370

Browse files
committed
fix bug
1 parent dd8288f commit 03cb370

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎Assets/ScrollView/ScrollView.cs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ void ResetCriticalItems()
287287
if (hasItem == shouldShow)
288288
{
289289
// 不应显示且未显示
290-
if (firstIndex != -1)
291-
{
292-
// 已经遍历完所有要显示的了 后边的先跳过
293-
break;
294-
}
290+
//if (firstIndex != -1)
291+
//{
292+
// // 已经遍历完所有要显示的了 后边的先跳过
293+
// break;
294+
//}
295295
continue;
296296
}
297297

‎Assets/ScrollView/ScrollViewEx.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private void OnValueChanged(Vector2 position)
187187
// Debug.LogError($"critical={critical} toShow={toShow} pin={pin} pin2={pin2} pinpos={rect.position} pin2pos={rect2.position} pinworld={oldWorld} pin2world={newWorld} deltaLocal = {deltaLocal}");
188188
SetContentAnchoredPosition(content.anchoredPosition - deltaLocal);
189189
UpdateData(true);
190-
UpdateData(false);
190+
//UpdateData(false);
191191
// Debug.LogError($"critical={critical} toShow={toShow} pin={pin} pin2={pin2} pinpos={rect.position} pin2pos={GetItemLocalRect(pin2).position} pinworld={oldWorld} pin2world={content.TransformPoint(GetItemLocalRect(pin2).position)} ===");
192192
// 取回速度
193193
velocity = oldVelocity;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /