diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-09-04 18:50:45 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-09-05 11:58:56 +0200 |
commit | d8b2f15b23773880ffd5cee52b8c9a78c2e2bc53 (patch) | |
tree | 48d6cf1a87e6924fea8a594c1e74654e4e4ced5f /app/javascript/flavours/glitch/components | |
parent | a9ed9d3572da2737aa36a236d1aa89391fbba934 (diff) |
Pause video playback if toot is collapsed or CWs folded (fixes #146)
Diffstat (limited to 'app/javascript/flavours/glitch/components')
-rw-r--r-- | app/javascript/flavours/glitch/components/status.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js index 9f47abfef..f3709f653 100644 --- a/app/javascript/flavours/glitch/components/status.js +++ b/app/javascript/flavours/glitch/components/status.js @@ -430,6 +430,7 @@ export default class Status extends ImmutablePureComponent { sensitive={status.get('sensitive')} letterbox={settings.getIn(['media', 'letterbox'])} fullwidth={settings.getIn(['media', 'fullwidth'])} + preventPlayback={isCollapsed || !isExpanded} onOpenVideo={this.handleOpenVideo} />)} </Bundle> |