SizeInput: fix slider bug that broke functionality on mobile

We were, for some reason, preventing the default behavior of touch
events onTouchStart and onTouchEnd. This made the slider unusable with
drag actions on mobile. I can't remember why we did this to begin with,
probably something important...

The slider thumb size was also increased for better tap target size.
This commit is contained in:
rektdeckard
2020-09-25 23:58:48 -04:00
parent 5b42711c3e
commit 55ddcfc9a7
2 changed files with 17 additions and 13 deletions

View File

@@ -7,12 +7,10 @@ import "./SizeInput.css";
type SizeInputProps = {};
const handleFocus = (event: React.UIEvent<HTMLInputElement>) => {
event.preventDefault();
event.currentTarget.focus();
};
const handleBlur = (event: React.UIEvent<HTMLInputElement>) => {
event.preventDefault();
event.currentTarget.blur();
};