Skip to content

Commit f992068

Browse files
umonacaaji-su
authored andcommitted
Improve swipe experience (mastodon#12168)
cherry-picking commit f4be89e.
1 parent 3352bc3 commit f992068

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/javascript/mastodon/features/ui/components/columns_area.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class ColumnsArea extends ImmutablePureComponent {
182182
const floatingActionButton = shouldHideFAB(this.context.router.history.location.pathname) ? null : <Link key='floating-action-button' to='/statuses/new' className='floating-action-button' aria-label={intl.formatMessage(messages.publish)}><Icon id='pencil' /></Link>;
183183

184184
const content = columnIndex !== -1 ? (
185-
<ReactSwipeableViews key='content' index={columnIndex} onChangeIndex={this.handleSwipe} onTransitionEnd={this.handleAnimationEnd} animateTransitions={shouldAnimate} springConfig={{ duration: '400ms', delay: '0s', easeFunction: 'ease' }} style={{ height: '100%' }} disabled>
185+
<ReactSwipeableViews key='content' hysteresis={0.2} threshold={15} index={columnIndex} onChangeIndex={this.handleSwipe} onTransitionEnd={this.handleAnimationEnd} animateTransitions={shouldAnimate} springConfig={{ duration: '400ms', delay: '0s', easeFunction: 'ease' }} style={{ height: '100%' }}>
186186
{links.map(this.renderView)}
187187
</ReactSwipeableViews>
188188
) : (

0 commit comments

Comments
 (0)