Skip to content

Commit

Permalink
do not build double tap action selector for touchpad swipe actions, a…
Browse files Browse the repository at this point in the history
…nd change tap to swipe
  • Loading branch information
Nerwyn committed Aug 30, 2024
1 parent 9396ab2 commit 88bd8e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/universal-remote-card.min.js

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions src/universal-remote-card-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1488,15 +1488,19 @@ export class UniversalRemoteCardEditor extends LitElement {
actionSelectors = html`
${actionsTabBar}
${this.buildActionOption(
'Tap behavior (optional)',
`${
this.touchpadTabIndex == 2 ? 'Tap' : 'Swipe'
} behavior (optional)`,
'tap_action',
defaultUiActions,
)}
${this.buildActionOption(
'Double tap behavior (optional)',
'double_tap_action',
defaultUiActions,
)}
${this.touchpadTabIndex == 2
? this.buildActionOption(
'Double tap behavior (optional)',
'double_tap_action',
defaultUiActions,
)
: ''}
${this.buildActionOption(
'Hold behavior (optional)',
'hold_action',
Expand Down

0 comments on commit 88bd8e1

Please sign in to comment.