fix big seeker circle style
This commit is contained in:
parent
df05825763
commit
8fc179cbde
1 changed files with 8 additions and 6 deletions
|
@ -418,6 +418,13 @@ class MediaPlayer extends React.PureComponent {
|
||||||
: mediaPlayerStyle.containedTrackingControls,
|
: mediaPlayerStyle.containedTrackingControls,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const seekerCircleStyle = [this.state.seeking ? mediaPlayerStyle.bigSeekerCircle : mediaPlayerStyle.seekerCircle];
|
||||||
|
if (!this.state.seeking) {
|
||||||
|
seekerCircleStyle.push(
|
||||||
|
this.state.fullscreenMode ? mediaPlayerStyle.seekerCircleTopFs : mediaPlayerStyle.seekerCircleTop
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles} onLayout={onLayout}>
|
<View style={styles} onLayout={onLayout}>
|
||||||
<Video
|
<Video
|
||||||
|
@ -482,12 +489,7 @@ class MediaPlayer extends React.PureComponent {
|
||||||
]}
|
]}
|
||||||
{...this.seekResponder.panHandlers}
|
{...this.seekResponder.panHandlers}
|
||||||
>
|
>
|
||||||
<View
|
<View style={seekerCircleStyle} />
|
||||||
style={[
|
|
||||||
this.state.seeking ? mediaPlayerStyle.bigSeekerCircle : mediaPlayerStyle.seekerCircle,
|
|
||||||
this.state.fullscreenMode ? mediaPlayerStyle.seekerCircleTopFs : mediaPlayerStyle.seekerCircleTop,
|
|
||||||
]}
|
|
||||||
/>
|
|
||||||
</View>
|
</View>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={[
|
style={[
|
||||||
|
|
Loading…
Reference in a new issue