Enable touch-clicks in react-draggable

Add onTouchEnd events for click functions inside react-draggable. Necessary because react-draggable prevents default click behavior.
This commit is contained in:
Snarling
2022-04-17 15:57:35 -04:00
parent 0fda1ecabf
commit 2e7b7c9d86
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ export function Overview({ children, mode }: IProps): React.ReactElement {
size="small"
className={classes.visibilityToggle}
>
{<CurrentIcon className={classes.icon} color="secondary" onClick={() => setOpen((old) => !old)} />}
{<CurrentIcon className={classes.icon} color="secondary" onClick={() => setOpen((old) => !old)} onTouchEnd={() => setOpen((old) => !old)} />}
</Button>
</Box>
</Box>