Quick search

Table Of Contents

Effects

バージョン 1.7.0 で追加.

Everything starts with the KineticEffect, the base class for computing velocity out of a movement.

This base class is used to implement the ScrollEffect, a base class used for our ScrollView widget effect. We have multiple implementations:

  • ScrollEffect: base class used for implementing an effect. It only calculates the scrolling and the overscroll.
  • DampedScrollEffect: uses the overscroll information to allow the user to drag more than expected. Once the user stops the drag, the position is returned to one of the bounds.
  • OpacityScrollEffect: uses the overscroll information to reduce the opacity of the scrollview widget. When the user stops the drag, the opacity is set back to 1.