tweak media player seeker top position in fullscreen mode

This commit is contained in:
Akinwale Ariwodola 2019-08-15 09:58:43 +01:00
parent acf0095be9
commit df05825763
2 changed files with 12 additions and 2 deletions

View file

@ -482,7 +482,12 @@ class MediaPlayer extends React.PureComponent {
]}
{...this.seekResponder.panHandlers}
>
<View style={this.state.seeking ? mediaPlayerStyle.bigSeekerCircle : mediaPlayerStyle.seekerCircle} />
<View
style={[
this.state.seeking ? mediaPlayerStyle.bigSeekerCircle : mediaPlayerStyle.seekerCircle,
this.state.fullscreenMode ? mediaPlayerStyle.seekerCircleTopFs : mediaPlayerStyle.seekerCircleTop,
]}
/>
</View>
<TouchableOpacity
style={[

View file

@ -96,12 +96,17 @@ const mediaPlayerStyle = StyleSheet.create({
seekerCircle: {
borderRadius: 12,
position: 'relative',
top: 14,
left: 15,
height: 12,
width: 12,
backgroundColor: Colors.LbryGreen,
},
seekerCircleTop: {
top: 14,
},
seekerCircleTopFs: {
top: 15,
},
seekerHandle: {
backgroundColor: 'transparent',
position: 'absolute',