fix: hide scroll navigation for touch devices

This commit is contained in:
ner committed 2024-10-10 16:00:49 +03:00
1 parent 058ecd452f
commit 272178d668
1 file changed
+1 -1
+1 -1
View File
@@ -87,7 +87,7 @@ function ScrollNavigation<E extends HTMLElement>({
key={className}
onClick={handleScroll}
className={cn(
'opacity-0 transition-opacity absolute top-1/2 transform -translate-y-1/2 bg-gradient-to-r h-full w-14 flex items-center cursor-pointer',
'opacity-0 hover-none:hidden hover-none:pointer-events-none transition-opacity absolute top-1/2 transform -translate-y-1/2 bg-gradient-to-r h-full w-14 flex items-center cursor-pointer',
{
'group-hover:opacity-100 hover:!opacity-60': isShow,
'pointer-events-none': !isShow