mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-05 02:39:26 +02:00
feat(adb): make DeviceObserver#onListChange
sticky
This commit is contained in:
parent
fe06652f52
commit
05c01adbd1
8 changed files with 135 additions and 96 deletions
|
@ -1,4 +1,4 @@
|
|||
import { EventEmitter } from "@yume-chan/event";
|
||||
import { StickyEventEmitter } from "@yume-chan/event";
|
||||
import type { ScrcpyMediaStreamPacket } from "@yume-chan/scrcpy";
|
||||
import { ScrcpyVideoCodecId } from "@yume-chan/scrcpy";
|
||||
import type {
|
||||
|
@ -61,7 +61,7 @@ export class WebCodecsVideoDecoder implements ScrcpyVideoDecoder {
|
|||
return this.#framesSkipped;
|
||||
}
|
||||
|
||||
#sizeChanged = new EventEmitter<{ width: number; height: number }>();
|
||||
#sizeChanged = new StickyEventEmitter<{ width: number; height: number }>();
|
||||
get sizeChanged() {
|
||||
return this.#sizeChanged.event;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue