Skip to content

Commit

Permalink
only check if mouse action is defined for current number of touches d…
Browse files Browse the repository at this point in the history
…etected on move, decrease mwc-tab horizontal padding
  • Loading branch information
Nerwyn committed Dec 9, 2024
1 parent 73513fd commit 958237f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/universal-remote-card.min.js

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions src/classes/remote-touchpad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,9 @@ export class RemoteTouchpad extends BaseRemoteElement {
// Only consider significant enough movement
const sensitivity = 2;
if (
this.renderTemplate(this.config.mouse_action?.action ?? 'none') !=
'none' ||
((this.targetTouches?.length ?? 0) > 1 &&
this.renderTemplate(
this.config.multi_mouse_action?.action ?? 'none',
) != 'none')
this.renderTemplate(
this.config[`${multiPrefix}mouse_action`]?.action ?? 'none',
) != 'none'
) {
// Mouse actions
if (
Expand Down
3 changes: 3 additions & 0 deletions src/universal-remote-card-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3435,6 +3435,9 @@ export class UniversalRemoteCardEditor extends LitElement {
outline: 1px dashed var(--primary-color);
--mdc-icon-size: 50%;
}
mwc-tab-bar {
--mdc-tab-horizontal-padding: 16px;
}
`;
}
}

0 comments on commit 958237f

Please sign in to comment.