aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorLuiz Kill <luizkill@gmail.com>2022-07-31 06:52:09 -0300
committerLuiz Kill <luizkill@gmail.com>2022-08-02 07:53:56 -0300
commit7c0dceca74a01948f8a002cfba157c179a2b889c (patch)
tree94a0ca74400d15d9349c3070194a8fff350ce2eb /modern
parenta33fb2affc50cfacbeac62cce0f82fc425228992 (diff)
downloadtrackermap-web-7c0dceca74a01948f8a002cfba157c179a2b889c.tar.gz
trackermap-web-7c0dceca74a01948f8a002cfba157c179a2b889c.tar.bz2
trackermap-web-7c0dceca74a01948f8a002cfba157c179a2b889c.zip
Fixes react-draggable on mobile devices
Diffstat (limited to 'modern')
-rw-r--r--modern/src/main/StatusCard.js5
1 files changed, 5 insertions, 0 deletions
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 }) => {
<IconButton
color="secondary"
onClick={(e) => setAnchorEl(e.currentTarget)}
+ onTouchStart={(e) => setAnchorEl(e.currentTarget)}
disabled={!position}
>
<PendingIcon />
</IconButton>
<IconButton
onClick={() => navigate('/replay')}
+ onTouchStart={() => navigate('/replay')}
disabled={!position}
>
<ReplayIcon />
</IconButton>
<IconButton
onClick={() => navigate(`/settings/command-send/${deviceId}`)}
+ onTouchStart={() => navigate(`/settings/command-send/${deviceId}`)}
disabled={readonly}
>
<PublishIcon />
</IconButton>
<IconButton
onClick={() => navigate(`/settings/device/${deviceId}`)}
+ onTouchStart={() => navigate(`/settings/device/${deviceId}`)}
disabled={deviceReadonly}
>
<EditIcon />
</IconButton>
<IconButton
onClick={() => setRemoving(true)}
+ onTouchStart={() => setRemoving(true)}
disabled={deviceReadonly}
className={classes.negative}
>