[mob][photos] Fix seeking UX issue when video just started playing

This commit is contained in:
ashilkn
2024-08-10 15:49:33 +05:30
parent f7345102a2
commit 9abd9e126c

View File

@@ -412,6 +412,7 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>
_controller?.playbackInfo?.status == PlaybackStatus.playing) {
Future.delayed(const Duration(milliseconds: 1500), () {
if (mounted) {
if (_isSeeking.value) return;
_showControls.value = false;
}
});
@@ -428,6 +429,7 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>
if (widget.playbackCallback != null && mounted) {
Future.delayed(const Duration(milliseconds: 1500), () {
if (mounted) {
if (_isSeeking.value) return;
_showControls.value = false;
widget.playbackCallback!(true);
}