mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
tap dm when debug
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1064,16 +1064,16 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
plPlayerController.triggerFullScreen(status: !isFullScreen);
|
||||
}
|
||||
|
||||
void onTapUp(TapDownDetails? event) {
|
||||
switch (event?.kind) {
|
||||
void onTapUp(TapUpDetails event) {
|
||||
switch (event.kind) {
|
||||
case ui.PointerDeviceKind.mouse when (Utils.isDesktop):
|
||||
onTapDesktop();
|
||||
break;
|
||||
default:
|
||||
if (plPlayerController.enableTapDm && Utils.isMobile) {
|
||||
if (kDebugMode && Utils.isMobile) {
|
||||
final ctr = plPlayerController.danmakuController;
|
||||
if (ctr != null) {
|
||||
final item = ctr.findSingleDanmaku(event!.localPosition);
|
||||
final item = ctr.findSingleDanmaku(event.localPosition);
|
||||
if (item == null) {
|
||||
if (_suspendedDm.value != null) {
|
||||
_removeOverlay();
|
||||
@@ -1254,7 +1254,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
onInteractionEnd: _onInteractionEnd,
|
||||
flipX: plPlayerController.flipX.value,
|
||||
flipY: plPlayerController.flipY.value,
|
||||
onTap: onTapUp,
|
||||
onTapUp: onTapUp,
|
||||
onDoubleTapDown: onDoubleTapDown,
|
||||
onLongPressStart: isLive
|
||||
? null
|
||||
|
||||
Reference in New Issue
Block a user