diff --git a/components/vc-image/src/Preview.tsx b/components/vc-image/src/Preview.tsx index 58ab378777..14f0415381 100644 --- a/components/vc-image/src/Preview.tsx +++ b/components/vc-image/src/Preview.tsx @@ -295,6 +295,14 @@ const Preview = defineComponent({ }, { flush: 'post', immediate: true }, ); + watch([lastWheelZoomDirection], () => { + const { wheelDirection } = lastWheelZoomDirection.value; + if (wheelDirection > 0) { + onZoomOut(); + } else if (wheelDirection < 0) { + onZoomIn(); + } + }); }); onUnmounted(() => { removeListeners();