Skip to content

Commit

Permalink
fix: add preventDefault in onthouchEnd on vo, mute and auto buttons too
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Feb 16, 2020
1 parent 891e661 commit 245352a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/components/Channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class Channel extends React.Component<IChannelProps & IChannelInjectProps & Stor
this.handleVo();
}}
onTouchEnd={event => {
event.preventDefault()
this.handleVo()
}}

Expand Down Expand Up @@ -226,6 +227,7 @@ class Channel extends React.Component<IChannelProps & IChannelInjectProps & Stor
this.handleIgnore();
}}
onTouchEnd={event => {
event.preventDefault()
this.handleIgnore()
}}
>
Expand All @@ -244,6 +246,7 @@ class Channel extends React.Component<IChannelProps & IChannelInjectProps & Stor
this.handleMute();
}}
onTouchEnd={event => {
event.preventDefault()
this.handleMute()
}}
>
Expand Down

0 comments on commit 245352a

Please sign in to comment.