mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 05:13:04 +03:00
add throttle to scrollview
This commit is contained in:
parent
01a8a497b3
commit
534727013a
@ -183,7 +183,11 @@ class PostDisplayView extends PureComponent {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<ScrollView style={styles.scroll} onScroll={event => this._handleOnScroll(event)}>
|
<ScrollView
|
||||||
|
style={styles.scroll}
|
||||||
|
onScroll={event => this._handleOnScroll(event)}
|
||||||
|
scrollEventThrottle={16}
|
||||||
|
>
|
||||||
{parentPost && <ParentPost post={parentPost} />}
|
{parentPost && <ParentPost post={parentPost} />}
|
||||||
|
|
||||||
<View style={styles.header}>
|
<View style={styles.header}>
|
||||||
|
@ -200,6 +200,7 @@ class ProfileView extends PureComponent {
|
|||||||
<ScrollView
|
<ScrollView
|
||||||
onScroll={this._handleOnScroll}
|
onScroll={this._handleOnScroll}
|
||||||
contentContainerStyle={styles.scrollContentContainer}
|
contentContainerStyle={styles.scrollContentContainer}
|
||||||
|
scrollEventThrottle={16}
|
||||||
>
|
>
|
||||||
<Comments
|
<Comments
|
||||||
isProfilePreview
|
isProfilePreview
|
||||||
|
@ -64,6 +64,7 @@ const WalletView = ({ setEstimatedWalletValue, selectedUser, handleOnScroll }) =
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
contentContainerStyle={styles.scrollContentContainer}
|
contentContainerStyle={styles.scrollContentContainer}
|
||||||
|
scrollEventThrottle={16}
|
||||||
>
|
>
|
||||||
{!walletData ? (
|
{!walletData ? (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
Loading…
Reference in New Issue
Block a user