From 7c0dceca74a01948f8a002cfba157c179a2b889c Mon Sep 17 00:00:00 2001 From: Luiz Kill Date: Sun, 31 Jul 2022 06:52:09 -0300 Subject: Fixes react-draggable on mobile devices --- modern/src/main/StatusCard.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modern/src/main/StatusCard.js b/modern/src/main/StatusCard.js index 852b7cc6..52cf9d48 100644 --- a/modern/src/main/StatusCard.js +++ b/modern/src/main/StatusCard.js @@ -212,30 +212,35 @@ const StatusCard = ({ deviceId, onClose }) => { setAnchorEl(e.currentTarget)} + onTouchStart={(e) => setAnchorEl(e.currentTarget)} disabled={!position} > navigate('/replay')} + onTouchStart={() => navigate('/replay')} disabled={!position} > navigate(`/settings/command-send/${deviceId}`)} + onTouchStart={() => navigate(`/settings/command-send/${deviceId}`)} disabled={readonly} > navigate(`/settings/device/${deviceId}`)} + onTouchStart={() => navigate(`/settings/device/${deviceId}`)} disabled={deviceReadonly} > setRemoving(true)} + onTouchStart={() => setRemoving(true)} disabled={deviceReadonly} className={classes.negative} > -- cgit v1.2.3