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}
|
ref={menuButtonRef}
|
||||||
{...bindTrigger(popupState)}
|
{...bindTrigger(popupState)}
|
||||||
onClick={(e) => handleClickOpenMenu(e, popupState.open)}
|
onClick={(e) => handleClickOpenMenu(e, popupState.open)}
|
||||||
onTouchStart={(e) => handleClickOpenMenu(e, popupState.open)}
|
|
||||||
aria-label="more"
|
aria-label="more"
|
||||||
size="large"
|
size="large"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ export const MangaOptionButton = forwardRef(
|
|||||||
ref={ref}
|
ref={ref}
|
||||||
{...bindTriggerProps}
|
{...bindTriggerProps}
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
onTouchStart={handleClick}
|
|
||||||
aria-label="more"
|
aria-label="more"
|
||||||
size="large"
|
size="large"
|
||||||
onMouseDown={preventDefaultAction}
|
onMouseDown={preventDefaultAction}
|
||||||
@@ -101,7 +100,6 @@ export const MangaOptionButton = forwardRef(
|
|||||||
ref={ref}
|
ref={ref}
|
||||||
{...bindTriggerProps}
|
{...bindTriggerProps}
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
onTouchStart={handleClick}
|
|
||||||
className="manga-option-button"
|
className="manga-option-button"
|
||||||
size="small"
|
size="small"
|
||||||
variant="contained"
|
variant="contained"
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ export const TrackMangaButton = ({ manga }: { manga: MangaTrackRecordInfo & Pick
|
|||||||
size="medium"
|
size="medium"
|
||||||
disabled={trackerList.loading || !!trackerList.error}
|
disabled={trackerList.loading || !!trackerList.error}
|
||||||
onClick={() => handleClick(popupState.open)}
|
onClick={() => handleClick(popupState.open)}
|
||||||
onTouchStart={() => handleClick(popupState.open)}
|
|
||||||
variant={trackersInUse.length ? 'contained' : 'outlined'}
|
variant={trackersInUse.length ? 'contained' : 'outlined'}
|
||||||
>
|
>
|
||||||
{trackersInUse.length ? <CheckIcon /> : <SyncIcon />}
|
{trackersInUse.length ? <CheckIcon /> : <SyncIcon />}
|
||||||
|
|||||||
@@ -80,11 +80,7 @@ export const SettingsTrackerCard = ({ tracker }: { tracker: TTrackerSearch }) =>
|
|||||||
<PopupState variant="popover" popupId="tracker-dialog">
|
<PopupState variant="popover" popupId="tracker-dialog">
|
||||||
{(popupState) => (
|
{(popupState) => (
|
||||||
<>
|
<>
|
||||||
<ListItemButton
|
<ListItemButton {...bindTrigger(popupState)} onClick={() => onClick(popupState.open)}>
|
||||||
{...bindTrigger(popupState)}
|
|
||||||
onClick={() => onClick(popupState.open)}
|
|
||||||
// onTouchStart={() => onClick(popupState.open)}
|
|
||||||
>
|
|
||||||
<ListItemAvatar sx={{ paddingRight: '20px' }}>
|
<ListItemAvatar sx={{ paddingRight: '20px' }}>
|
||||||
<Avatar
|
<Avatar
|
||||||
alt={`${tracker.name}`}
|
alt={`${tracker.name}`}
|
||||||
|
|||||||
@@ -83,10 +83,6 @@ const TrackerActiveRemoveBind = ({
|
|||||||
onClick();
|
onClick();
|
||||||
popupState.open();
|
popupState.open();
|
||||||
}}
|
}}
|
||||||
onTouchStart={() => {
|
|
||||||
onClick();
|
|
||||||
popupState.open();
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{t('global.button.remove')}
|
{t('global.button.remove')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user