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

@@ -185,7 +185,6 @@ export const ChapterCard: React.FC<IProps> = (props: IProps) => {
ref={menuButtonRef}
{...bindTrigger(popupState)}
onClick={(e) => handleClickOpenMenu(e, popupState.open)}
onTouchStart={(e) => handleClickOpenMenu(e, popupState.open)}
aria-label="more"
size="large"
>

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 />}

View File

@@ -80,11 +80,7 @@ export const SettingsTrackerCard = ({ tracker }: { tracker: TTrackerSearch }) =>
<PopupState variant="popover" popupId="tracker-dialog">
{(popupState) => (
<>
<ListItemButton
{...bindTrigger(popupState)}
onClick={() => onClick(popupState.open)}
// onTouchStart={() => onClick(popupState.open)}
>
<ListItemButton {...bindTrigger(popupState)} onClick={() => onClick(popupState.open)}>
<ListItemAvatar sx={{ paddingRight: '20px' }}>
<Avatar
alt={`${tracker.name}`}

View File

@@ -83,10 +83,6 @@ const TrackerActiveRemoveBind = ({
onClick();
popupState.open();
}}
onTouchStart={() => {
onClick();
popupState.open();
}}
>
{t('global.button.remove')}
</MenuItem>