diff --git a/src/swipe/index.js b/src/swipe/index.js index 0d0fa213d..a10c44d0e 100644 --- a/src/swipe/index.js +++ b/src/swipe/index.js @@ -400,7 +400,7 @@ export default createComponent({ watch([windowSize.width, windowSize.height], resize); watch(usePageVisibility(), (visible) => { - if (visible) { + if (visible === 'visible') { autoplay(); } else { stopAutoplay();