Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
feat: support touch move
Browse files Browse the repository at this point in the history
  • Loading branch information
wwayne committed Jan 7, 2021
1 parent 4dee0dc commit a592e5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ export default class HorizontalScroll extends Component {
<div
id={this.innerId}
className='HorizontalScrollInner'
onTouchStart={::this.onTrackMouseDown}
onTouchMove={::this.onTrackMouseMove}
onTouchEnd={::this.onTrackMouseUp}
>
{!isArrayChild &&
<div className='HorizontalScrollInnerChildren'>{children}</div>}
Expand Down

0 comments on commit a592e5d

Please sign in to comment.