From d64bbeb24332aa83dea8a605806fb317eda1aeb4 Mon Sep 17 00:00:00 2001 From: liatv Date: Wed, 24 Apr 2024 15:05:42 +0300 Subject: [PATCH] force video play action on mobile to be click --- .../src/components/gallery/proGallery/galleryContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gallery/src/components/gallery/proGallery/galleryContainer.js b/packages/gallery/src/components/gallery/proGallery/galleryContainer.js index 5c815578f..ce7639a2c 100644 --- a/packages/gallery/src/components/gallery/proGallery/galleryContainer.js +++ b/packages/gallery/src/components/gallery/proGallery/galleryContainer.js @@ -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' ||