Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vsp freeze #3564

Merged
merged 2 commits into from
Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public HierarchicalVirtualizationConstraints(VirtualizationCacheLength cacheLeng
_cacheLength = cacheLength;
_cacheLengthUnit = cacheLengthUnit;
_viewport = viewport;
_scrollGeneration = 0; // internal field set separately by caller
}

#endregion
Expand Down Expand Up @@ -131,11 +132,22 @@ public override int GetHashCode()

#endregion

#region Internal properties

internal long ScrollGeneration
{
get { return _scrollGeneration; }
set { _scrollGeneration = value; }
}

#endregion

#region Data

VirtualizationCacheLength _cacheLength;
VirtualizationCacheLengthUnit _cacheLengthUnit;
Rect _viewport;
long _scrollGeneration;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL

If you do 1000 scroll operations per second, that will happen in about 280 million years.

Maybe we can use ulong 😂


#endregion
}
Expand Down
Loading