Skip to content

Commit

Permalink
force video play action on mobile to be click
Browse files Browse the repository at this point in the history
  • Loading branch information
liatv committed Apr 24, 2024
1 parent 1047336 commit d64bbeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class GalleryContainer extends React.Component {
this.onMouseLeave = this.onMouseLeave.bind(this);
this.mediaScrollHelper = new MediaScrollHelperWrapper([
{
getPlayTrigger: (options) => options.behaviourParams_item_video_playTrigger,
getPlayTrigger: (options) => (utils.isMobile() ? 'CLICK' : options.behaviourParams_item_video_playTrigger),
onSetPlayingIdx: (idx) => this.setState({ playingVideoIdx: idx }),
supportedItemsFilter: (item) =>
item.type === 'video' ||
Expand Down

0 comments on commit d64bbeb

Please sign in to comment.