eclipsesource / eclipsesource/tabris-js

Some ScrollView questions

Open
#1,787 2 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

1) At the moment, when scrolling ScrollView, there is a blue border.

![image](https://user-images.githubusercontent.com/26363214/52210920-ca46e400-28a1-11e9-8529-780d08dd3c02.png)

As far as I know, there is no property in the `ScrollView` object to set the edge style. It would be great if it would be possible to use the [`setOverScrollMode`](https://developer.android.com/reference/android/view/View.html#setOverScrollMode(int)) method

2) Is there any way to disable the manual scrolling feature in ScrollView? In my case, I need to control scrolling only through the button (onboarding screen).

```js
.on('offsetXChanged', ({
target,
value
}) => {
target.scrollToX(0, false);
});
```

If you update offsetX every time after scrolling, it will lead to the following

[![Image from Gyazo](https://i.gyazo.com/79a47c09ef28b76e30a3298b8e84920b.gif)](https://gyazo.com/79a47c09ef28b76e30a3298b8e84920b)

You also won't be able to update offset every time unit, because these properties are read-only

![image](https://user-images.githubusercontent.com/26363214/52211731-24e13f80-28a4-11e9-8899-ba4bcfbbef33.png)

I would like to be able to cancel scrolling before it is done. Something like [`preventDefault`](http://docs.tabris.com/latest/api/app.html#backnavigation). But it would be much better if it could be used as a `SrollView` property. For example, `scrollable: false`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.