File tree 1 file changed +8
-3
lines changed
src/components/ui/gallery
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -143,16 +143,19 @@ export const Gallery: FC<GalleryProps> = (props) => {
143
143
< div
144
144
className = { clsx ( 'w-full' , 'relative' , styles [ 'root' ] ) }
145
145
ref = { ref }
146
+ onTouchMove = { handleCancelAutoplay }
146
147
onWheel = { handleCancelAutoplay }
147
- onTouchStart = { handleCancelAutoplay }
148
148
>
149
149
< div
150
150
className = { clsx (
151
151
'w-full overflow-auto whitespace-nowrap' ,
152
152
styles [ 'container' ] ,
153
153
) }
154
- ref = { setContainerRef }
154
+ onTouchStart = { handleCancelAutoplay }
155
155
onScroll = { handleOnScroll }
156
+ ref = { setContainerRef }
157
+ onTouchMove = { handleCancelAutoplay }
158
+ onWheel = { handleCancelAutoplay }
156
159
>
157
160
{ images . map ( ( image ) => {
158
161
return < GalleryItem key = { image . url } image = { image } />
@@ -198,7 +201,7 @@ const GalleryItem: FC<{
198
201
return (
199
202
< div
200
203
style = { childStyle }
201
- className = { clsx ( styles [ 'child' ] , 'inline-block' ) }
204
+ className = { clsx ( styles [ 'child' ] , 'inline-block self-center ' ) }
202
205
key = { `${ image . url } -${ image . name || '' } ` }
203
206
>
204
207
< FixedZoomedImage
@@ -210,3 +213,5 @@ const GalleryItem: FC<{
210
213
</ div >
211
214
)
212
215
} )
216
+
217
+ GalleryItem . displayName = 'GalleryItem'
You can’t perform that action at this time.
0 commit comments