Added Gizmo Hints

Merged
#16 · Created  · Last updated

Merged pull request

Added gizmo hints.

5bddb0b·Author: ·Closed by: ·2019-03-19

Description

Resolves

N/A

Proposed Changes

Adds a gizmo that shows where the scroll snap’s pivot is.

Adds a gizmo on each item to show where its pivot is.

Adds a gizmo to show where the looped item will be when looped, if the scroll snap is loopable.

 

Reason for Changes

Sometimes it is tricky to visualize how your scroll snap will work when you run the code, this will help with that.

Test Coverage

Horizontal Scroll Snap Pivot:

  • Scroll Snap Scaled - Pass

  • Scroll Snap Rotated - Pass

  • Scroll Snap Pivot Moved - Pass

Horizontal Scroll Snap Item Pivots:

  • Scroll Snap Scaled - Pass

  • Scroll Snap Rotated - Pass

  • Content Rotated - Not Supported

  • Content Scaled - Pass

  • Children Scaled - Pass

  • Children Rotated - Pass

  • Children Pivots Moved - Pass

Horizontal Scroll Snap Looped Item:

  • Scroll Snap Scaled - Pass

  • Scroll Snap Rotated - Pass

  • Content Rotated - Not Supported

  • Content Scaled - Pass

  • Children Scaled - Pass

  • Children Rotated - Pass

  • Children Pivots Moved - Pass

Vertical Scroll Snap Pivot

  • Scroll Snap Scaled - Pass

  • Scroll Snap Rotated - Pass

  • Scroll Snap Pivot Moved - Pass

Vertical Scroll Snap Item Pivots:

  • Scroll Snap Scaled - Pass

  • Scroll Snap Rotated - Pass

  • Content Rotated - Not Supported

  • Content Scaled - Pass

  • Children Scaled - Pass

  • Children Rotated - Pass

  • Children Pivots Moved - Pass

Vertical Scroll Snap Looped Item:

  • Scroll Snap Scaled - Pass

  • Scroll Snap Rotated - Pass

  • Content Rotated - Not Supported

  • Content Scaled - Pass

  • Children Scaled - Pass

  • Children Rotated - Pass

  • Children Pivots Moved - Pass

Additional Information

The looped item gizmo is currently based on the first child of the content and the last child of the content, which are not necessarily the startmost and endmost items. This could be enhanced in the future.

0 attachments

0 comments

Loading commits...