Inpainted State Fix

This commit is contained in:
blessedcoolant
2022-03-30 19:14:32 +13:00
parent b282421c98
commit ca9e393989
9 changed files with 13 additions and 20 deletions

View File

@@ -9,6 +9,7 @@ interface ButtonProps {
onClick?: () => void
onDown?: (ev: PointerEvent) => void
onUp?: (ev: PointerEvent) => void
style?: React.CSSProperties
}
export default function Button(props: ButtonProps) {
@@ -21,6 +22,7 @@ export default function Button(props: ButtonProps) {
onClick,
onDown,
onUp,
style,
} = props
const blurOnClick = (e: React.MouseEvent<HTMLDivElement>) => {
@@ -31,6 +33,7 @@ export default function Button(props: ButtonProps) {
return (
<div
role="button"
style={style}
onKeyDown={onKeyDown}
onClick={blurOnClick}
onPointerDown={(ev: React.PointerEvent<HTMLDivElement>) => {