diff --git a/packages/vkui/src/components/BaseGallery/CarouselBase/CarouselBase.tsx b/packages/vkui/src/components/BaseGallery/CarouselBase/CarouselBase.tsx index 16522db6d2..b3b4bfe0df 100644 --- a/packages/vkui/src/components/BaseGallery/CarouselBase/CarouselBase.tsx +++ b/packages/vkui/src/components/BaseGallery/CarouselBase/CarouselBase.tsx @@ -70,6 +70,7 @@ export const CarouselBase = ({ const isCenterWithCustomWidth = slideWidth === 'custom' && align === 'center'; const transformCssStyles = (shiftX: number, animation = false) => { + shiftX = Math.round(shiftX); slidesManager.current.loopPoints.forEach((loopPoint) => { const { target, index } = loopPoint; const slide = slidesStore.current[index]; diff --git a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-chromium-dark-1-snap.png b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-chromium-dark-1-snap.png index 2c208a92a1..c49ce07e22 100644 --- a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-chromium-dark-1-snap.png +++ b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-chromium-dark-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fa772b2f8e0ba32dc0e7abf562ed1a1919389d97ff2eb7448164f0512570c0b4 -size 125717 +oid sha256:9348af08cad0fda467c69388c344ff3a6e1d4f70a194c6a7e86ad61a138544cd +size 111164 diff --git a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-chromium-light-1-snap.png b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-chromium-light-1-snap.png index e71fe14d19..355d93f8cc 100644 --- a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-chromium-light-1-snap.png +++ b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-chromium-light-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a82018865406d7318be38b26451e6317e848a62b1dd07097db833479ac627bda -size 126080 +oid sha256:1e75bec1bd051c6159372d18632db767bb331b63b8112da2913cfc34b014ccad +size 113483 diff --git a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-firefox-dark-1-snap.png b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-firefox-dark-1-snap.png index e4e9a397ed..2f5d52731b 100644 --- a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-firefox-dark-1-snap.png +++ b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-firefox-dark-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fbab27f464eb3155aa347e632b9df6406eab26a369707b234f9426a758f3480f -size 167683 +oid sha256:f9596afcf6372cc686cee533642df5c6bb0b538c3bb2ffef80b806384bbbb470 +size 167617 diff --git a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-firefox-light-1-snap.png b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-firefox-light-1-snap.png index c9e3f33a13..8bbd27b06f 100644 --- a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-firefox-light-1-snap.png +++ b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-firefox-light-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:407a4ae1c8ae47f6882b68938a19a64ace95101fb5a855788193aec10a9d9cec -size 167994 +oid sha256:d58d29530cb3811bc1f7117a3ee988e85cc1053397369d21fed474dcbe48f527 +size 167944 diff --git a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-webkit-dark-1-snap.png b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-webkit-dark-1-snap.png index 16c91e3806..5b0d860984 100644 --- a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-webkit-dark-1-snap.png +++ b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-webkit-dark-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:842c6df094eb6479220125915e61319c8341ee988b1cfe0badb9b6c37ed9e3ba -size 114795 +oid sha256:1bd8be96211279191c95a7fe34b4c9274515c2d4c6766497f6fc78a7030be15a +size 114768 diff --git a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-webkit-light-1-snap.png b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-webkit-light-1-snap.png index b16c050efa..ecf01d42e3 100644 --- a/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-webkit-light-1-snap.png +++ b/packages/vkui/src/components/Gallery/__image_snapshots__/gallery-vkcom-webkit-light-1-snap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:14c9b4ceb67c09679e3d7e7ecb21e7b1c895594d304bd790fbda3e71ef6ec8bc -size 116742 +oid sha256:ef52e18dd69075cdd780944993e35b26f53cdf3ada53d617929c8843132c33d0 +size 116711