opt mouse/keyboard event

Closes #1443

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-03 20:17:27 +08:00
parent 06c545acd4
commit 5747dee03d
3 changed files with 23 additions and 11 deletions

View File

@@ -1786,10 +1786,14 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
final buttons = event.buttons;
final isSecondaryBtn = buttons == kSecondaryMouseButton;
if (isSecondaryBtn || buttons == kMiddleMouseButton) {
plPlayerController.triggerFullScreen(
status: !isFullScreen,
inAppFullScreen: isSecondaryBtn,
);
plPlayerController
.triggerFullScreen(
status: !isFullScreen,
inAppFullScreen: isSecondaryBtn,
)
.whenComplete(
() => plPlayerController.initialFocalPoint = Offset.zero,
);
}
},
onPointerSignal: (event) {