Remove unintentional touch bindings

Caused double clicks
This commit is contained in:
schroda
2025-01-02 02:41:42 +01:00
parent 2944252d91
commit ed992046cb
5 changed files with 1 additions and 13 deletions

View File

@@ -84,7 +84,6 @@ export const MangaOptionButton = forwardRef(
ref={ref}
{...bindTriggerProps}
onClick={handleClick}
onTouchStart={handleClick}
aria-label="more"
size="large"
onMouseDown={preventDefaultAction}
@@ -101,7 +100,6 @@ export const MangaOptionButton = forwardRef(
ref={ref}
{...bindTriggerProps}
onClick={handleClick}
onTouchStart={handleClick}
className="manga-option-button"
size="small"
variant="contained"

View File

@@ -56,7 +56,6 @@ export const TrackMangaButton = ({ manga }: { manga: MangaTrackRecordInfo & Pick
size="medium"
disabled={trackerList.loading || !!trackerList.error}
onClick={() => handleClick(popupState.open)}
onTouchStart={() => handleClick(popupState.open)}
variant={trackersInUse.length ? 'contained' : 'outlined'}
>
{trackersInUse.length ? <CheckIcon /> : <SyncIcon />}