Skip to content

Commit

Permalink
Make tap over threshold always available
Browse files Browse the repository at this point in the history
  • Loading branch information
loucass003 committed Feb 4, 2025
1 parent f89f9ae commit 614ddbf
Showing 1 changed file with 27 additions and 32 deletions.
59 changes: 27 additions & 32 deletions gui/src/components/settings/pages/GeneralSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1415,38 +1415,33 @@ export function GeneralSettings() {
step={1}
/>
</div>
{config?.debug && (
<div className="grid sm:grid-cols-1 gap-2 pt-2">
<Typography bold>
{l10n.getString(
'settings-general-gesture_control-numberTrackersOverThreshold'
)}
</Typography>
<Typography color="secondary">
{l10n.getString(
'settings-general-gesture_control-numberTrackersOverThreshold-description'
)}
</Typography>
<NumberSelector
control={control}
name="tapDetection.numberTrackersOverThreshold"
label={l10n.getString(
'settings-general-gesture_control-numberTrackersOverThreshold'
)}
valueLabelFormat={(value) =>
l10n.getString(
'settings-general-gesture_control-trackers',
{
amount: Math.round(value),
}
)
}
min={1}
max={20}
step={1}
/>
</div>
)}
<div className="grid sm:grid-cols-1 gap-2 pt-2">
<Typography bold>
{l10n.getString(
'settings-general-gesture_control-numberTrackersOverThreshold'
)}
</Typography>
<Typography color="secondary">
{l10n.getString(
'settings-general-gesture_control-numberTrackersOverThreshold-description'
)}
</Typography>
<NumberSelector
control={control}
name="tapDetection.numberTrackersOverThreshold"
label={l10n.getString(
'settings-general-gesture_control-numberTrackersOverThreshold'
)}
valueLabelFormat={(value) =>
l10n.getString('settings-general-gesture_control-trackers', {
amount: Math.round(value),
})
}
min={1}
max={20}
step={1}
/>
</div>
</>
</SettingsPagePaneLayout>
</form>
Expand Down

0 comments on commit 614ddbf

Please sign in to comment.