Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 7f2a09c3 authored by Simon Chan's avatar Simon Chan
Browse files

fix(scrcpy): incorrect scroll controller in version 1.22 and later

parent 6140ebc7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
---
"@yume-chan/scrcpy": patch
---

Fix incorrect scroll controller in version 1.22 and later
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
        "prepublishOnly": "npm run build"
    },
    "devDependencies": {
        "@types/audioworklet": "^0.0.65",
        "@types/audioworklet": "^0.0.64",
        "@yume-chan/eslint-config": "workspace:^",
        "@yume-chan/tsconfig": "workspace:^",
        "prettier": "^3.4.2",
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ export { Defaults } from "./defaults.js";
export type { Init } from "./init.js";
export { parseVideoStreamMetadata } from "./parse-video-stream-metadata.js";
export {
    createScrollController,
    InjectScrollControlMessage,
    ScrollController,
} from "./scroll-controller.js";
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ import { s32, struct } from "@yume-chan/struct";

import type { ScrcpyInjectScrollControlMessage } from "../../latest.js";

import type { ScrcpyScrollController } from "../../base/index.js";
import { PrevImpl } from "./prev.js";

export const InjectScrollControlMessage = /* #__PURE__ */ (() =>
@@ -30,3 +31,7 @@ export class ScrollController extends PrevImpl.ScrollController {
        return InjectScrollControlMessage.serialize(processed);
    }
}

export function createScrollController(): ScrcpyScrollController {
    return new ScrollController();
}
+1 −0
Original line number Diff line number Diff line
export * from "../../1_24/impl/index.js";
export {
    createScrollController,
    InjectScrollControlMessage,
    ScrollController,
    SignedFloat,
Loading