Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touchscreen scroll not supported! #1557

Closed
Richyeoh opened this issue Dec 7, 2021 · 1 comment
Closed

Touchscreen scroll not supported! #1557

Richyeoh opened this issue Dec 7, 2021 · 1 comment

Comments

@Richyeoh
Copy link

Richyeoh commented Dec 7, 2021

Box {
    val stateVertical = rememberScrollState(0)
    val data = (0 until 1000).map { "Item $it" }
    Column(modifier = Modifier.verticalScroll(stateVertical)) {
        for (i in data) {
            Text(
                i,
                Modifier
                    .padding(14.dp)
                    .fillMaxWidth()
            )
        }
    }
    VerticalScrollbar(
        modifier = Modifier.align(Alignment.CenterEnd)
            .fillMaxHeight(),
        adapter = rememberScrollbarAdapter(stateVertical),
    )
}

or

val data = (0 until 1000).map { "Item $it" }
LazyColumn {
  items(data) { i ->
      Text(
          i,
          Modifier
              .padding(14.dp)
              .fillMaxWidth()
      )
  }
}

Not support touchscreen scroll.

Who can help me, thank you.

@akurasov
Copy link
Contributor

akurasov commented Dec 7, 2021

Duplicate of #1555

@akurasov akurasov marked this as a duplicate of #1555 Dec 7, 2021
@akurasov akurasov closed this as completed Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants