feat(scrcpy): mouse and touch control

This commit is contained in:
Simon Chan 2020-10-03 19:57:27 +08:00
parent dc073a5d34
commit 1f6caf9604
23 changed files with 487 additions and 148 deletions

View file

@ -15,7 +15,7 @@ interface CopyLinkProps {
href: string;
}
const CopyLink = withDisplayName('CopyLink', ({
const CopyLink = withDisplayName('CopyLink')(({
href,
}: CopyLinkProps) => {
const calloutTarget = useRef<HTMLButtonElement | null>(null);
@ -44,7 +44,7 @@ const CopyLink = withDisplayName('CopyLink', ({
);
});
export const Intro = withDisplayName('Intro', () => {
export const Intro = withDisplayName('Intro')(() => {
return (
<>
<Text block>