Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
biezhihua committed Jun 26, 2024
1 parent 0a620a5 commit eb824df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ object GXTemplateKey {
/**
* center/left/right
*/
const val GAIAX_SCROLL_GRAVITY = "scroll-gravity"
const val GAIAX_SCROLL_POSITION = "scroll-position"
const val GAIAX_SCROLL_INDEX = "scroll-index"
const val GAIAX_SCROLL_ANIMATED = "scroll-animated"
const val GAIAX_DATABINDING_ITEM_TYPE = "item-type"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ScrollTemplateActivity : AppCompatActivity() {
if (holdingOffset) {
val scrollIndex = extend?.getInteger(GXTemplateKey.GAIAX_SCROLL_INDEX) ?: -1
if (scrollIndex != -1) {
val scrollGravity = extend?.getString(GXTemplateKey.GAIAX_SCROLL_GRAVITY)
val scrollGravity = extend?.getString(GXTemplateKey.GAIAX_SCROLL_POSITION)
if (scrollGravity != null) {
// 默认是平滑滚动的
val scroller = when (scrollGravity) {
Expand Down

0 comments on commit eb824df

Please sign in to comment.