Remove unintentional touch bindings
Caused double clicks
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 />}
|
||||
|
||||
@@ -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}`}
|
||||
|
||||
@@ -83,10 +83,6 @@ const TrackerActiveRemoveBind = ({
|
||||
onClick();
|
||||
popupState.open();
|
||||
}}
|
||||
onTouchStart={() => {
|
||||
onClick();
|
||||
popupState.open();
|
||||
}}
|
||||
>
|
||||
{t('global.button.remove')}
|
||||
</MenuItem>
|
||||
|
||||
Reference in New Issue
Block a user