setTranslateXFromScrollX method

void setTranslateXFromScrollX(
  1. double scrollX
)

scrollX 转换为 TranslateX

Implementation

void setTranslateXFromScrollX(double scrollX) =>
    mTranslateX = scrollX + getMinTranslateX();