fix trackpad not respecting enableSlideVolumeBrightness property

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-03 15:53:59 +08:00
parent 0504011ba0
commit 8bae275120

View File

@@ -1327,6 +1327,10 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
plPlayerController.updatePreviewIndex(newPos ~/ 1000);
}
} else if (_gestureType == GestureType.right) {
if (!plPlayerController.enableSlideVolumeBrightness) {
return;
}
final double level = maxHeight * 0.5;
EasyThrottle.throttle(
'setVolume',