mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Small cleanups
This commit is contained in:
parent
4b7f59e2e9
commit
a6c645c33f
@ -35,7 +35,7 @@ export const tooltip = (tooltip: string, up?: boolean) =>
|
||||
});
|
||||
|
||||
export const WebTooltip = ({ theme }: { theme: Theme }) => {
|
||||
const background = `${theme.colors.black}CC`;
|
||||
const background = `${theme.light.colors.black}CC`;
|
||||
|
||||
return (
|
||||
<style jsx global>{`
|
||||
|
@ -157,9 +157,12 @@ export const Player: QueryPage<{ slug: string }> = ({ slug }) => {
|
||||
>
|
||||
<Pressable
|
||||
focusable={false}
|
||||
onPress={
|
||||
Platform.OS === "web"
|
||||
? (e) => {
|
||||
onPress={(e) => {
|
||||
// TODO: use onPress event to diferenciate touch and click on the web (requires react native web 0.19)
|
||||
if (Platform.OS !== "web") {
|
||||
displayControls ? setMouseMoved(false) : show();
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
touchCount++;
|
||||
if (touchCount == 2) {
|
||||
@ -171,9 +174,7 @@ export const Player: QueryPage<{ slug: string }> = ({ slug }) => {
|
||||
touchCount = 0;
|
||||
}, 400);
|
||||
setPlay(!isPlaying);
|
||||
}
|
||||
: () => (displayControls ? setMouseMoved(false) : show())
|
||||
}
|
||||
}}
|
||||
{...css(StyleSheet.absoluteFillObject)}
|
||||
>
|
||||
<Video
|
||||
|
Loading…
x
Reference in New Issue
Block a user