ScrollbarFixer8 Class |
Fixes ScrollView inertia when the content grows too big. The default method cuts off the inertia in most cases.
Attach it to the Scrollbar and make sure no scrollbars are assigned to the ScrollRect
Namespace: frame8.Logic.Misc.Visual.UI.MonoBehaviours
public class ScrollbarFixer8 : MonoBehaviour, IBeginDragHandler, IEventSystemHandler, IEndDragHandler, IDragHandler, IPointerDownHandler, IScrollRectProxy
The ScrollbarFixer8 type exposes the following members.
Name | Description | |
---|---|---|
ScrollbarFixer8 |
Name | Description | |
---|---|---|
Content | ||
IsDragging | ||
IsHorizontal | ||
IsVertical | ||
Velocity | ||
Viewport |
Name | Description | |
---|---|---|
GetContentSize | ||
GetNormalizedPosition | ||
GetViewportSize | ||
OnBeginDrag | ||
OnDrag | ||
OnEndDrag | ||
OnPointerDown | ||
SetNormalizedPosition | ||
StopMovement |
Name | Description | |
---|---|---|
ScrollPositionChanged | Not used in this default interface implementation |
Name | Description | |
---|---|---|
autoHide | ||
autoHideCollapseEffect | ||
autoHideCollapseEffectMinScale | ||
autoHideFadeEffect | ||
autoHideFadeEffectMinAlpha | ||
autoHideTime | ||
externalScrollRectProxy |
Will be retrieved from the scrollrect. If not found, it can be assigned anytime before the first Update.
If not assigned, a default proxy will be used. The purpose of this is to allow custom implementations of ScrollRect to be used
| |
hideWhenNotNeeded | ||
minSize | ||
OnScrollbarSizeChanged | ||
scrollRect | ||
sizeUpdateInterval | ||
skippedFramesBetweenPositionChanges | ||
viewport |
Name | Description | |
---|---|---|
GetContentSizeToViewportRatio | (Defined by IScrollRectProxyExtensions.) | |
GetScrollableArea | (Defined by IScrollRectProxyExtensions.) |