generated from nhcarrigan/template
revert: remove isTrusted guard from click handler (#105)
isTrusted is false for click events in user agents, so the guard would have blocked all legitimate user clicks. Client-side autoclicking also has no meaningful server-side impact since gold is bounded by save syncs.
This commit is contained in:
@@ -42,7 +42,7 @@ const ClickArea = (): JSX.Element => {
|
||||
|
||||
const handleClickWithFloat = useCallback(
|
||||
(event: MouseEvent<HTMLButtonElement>) => {
|
||||
if (!event.isTrusted || state === null) {
|
||||
if (state === null) {
|
||||
return;
|
||||
}
|
||||
const rect = event.currentTarget.getBoundingClientRect();
|
||||
|
||||
Reference in New Issue
Block a user