mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
Revert "fix(ui): Apple Pencil requires onPointerUp instead of onClick"
This reverts commit 2a90f4f59e.
This commit is contained in:
@@ -9,11 +9,11 @@ import { PiTrashSimpleBold } from 'react-icons/pi';
|
||||
import { $isConnected } from 'services/events/stores';
|
||||
|
||||
type DeleteImageButtonProps = Omit<IconButtonProps, 'aria-label'> & {
|
||||
onPointerUp: () => void;
|
||||
onClick: () => void;
|
||||
};
|
||||
|
||||
export const DeleteImageButton = memo((props: DeleteImageButtonProps) => {
|
||||
const { onPointerUp, isDisabled } = props;
|
||||
const { onClick, isDisabled } = props;
|
||||
const { t } = useTranslation();
|
||||
const isConnected = useStore($isConnected);
|
||||
const imageSelectionLength = useAppSelector(selectSelectionCount);
|
||||
@@ -21,7 +21,7 @@ export const DeleteImageButton = memo((props: DeleteImageButtonProps) => {
|
||||
|
||||
return (
|
||||
<IconButton
|
||||
onPointerUp={onPointerUp}
|
||||
onClick={onClick}
|
||||
icon={<PiTrashSimpleBold />}
|
||||
tooltip={labelMessage}
|
||||
aria-label={labelMessage}
|
||||
|
||||
Reference in New Issue
Block a user