mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 17:59:50 +02:00
fix(scrcpy): incorrect scroll controller in version 1.22 and later
This commit is contained in:
parent
6140ebc772
commit
7f2a09c378
7 changed files with 23 additions and 7 deletions
|
@ -2,8 +2,8 @@ import { getInt16, setInt16 } from "@yume-chan/no-data-view";
|
|||
import type { Field, StructInit } from "@yume-chan/struct";
|
||||
import { bipedal, struct, u16, u32, u8 } from "@yume-chan/struct";
|
||||
|
||||
import { ScrcpyControlMessageType } from "../../base/index.js";
|
||||
import type { ScrcpyScrollController } from "../../base/index.js";
|
||||
import { ScrcpyControlMessageType } from "../../base/index.js";
|
||||
import type { ScrcpyInjectScrollControlMessage } from "../../latest.js";
|
||||
import { clamp } from "../../utils/index.js";
|
||||
|
||||
|
@ -49,3 +49,7 @@ export class ScrollController implements ScrcpyScrollController {
|
|||
return InjectScrollControlMessage.serialize(message);
|
||||
}
|
||||
}
|
||||
|
||||
export function createScrollController(): ScrcpyScrollController {
|
||||
return new ScrollController();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue