mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
Removing bug with touchstart
This commit is contained in:
parent
cbc354e0b6
commit
19db5a7e1d
@ -50,10 +50,12 @@ const ProductSlider: FC = ({ children }) => {
|
||||
)
|
||||
|
||||
return () => {
|
||||
sliderContainerRef.current!.removeEventListener(
|
||||
'touchstart',
|
||||
preventNavigation
|
||||
)
|
||||
if (sliderContainerRef.current) {
|
||||
sliderContainerRef.current!.removeEventListener(
|
||||
'touchstart',
|
||||
preventNavigation
|
||||
)
|
||||
}
|
||||
}
|
||||
}, [])
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"features": {
|
||||
"wishlist": true
|
||||
"wishlist": false
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user