Skip to content

Commit

Permalink
fix unified remote default key mousepad mouse action, use toucharea f…
Browse files Browse the repository at this point in the history
…or mousepad to reuse styles
  • Loading branch information
Nerwyn committed Dec 8, 2024
1 parent ee78071 commit 81555c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/universal-remote-card.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/classes/remote-mousepad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class RemoteMousepad extends RemoteTouchpad {

render() {
this.setValue();
return html`<mousearea
return html`<toucharea
@mousedown=${this.onMouseDown}
@mouseup=${this.onMouseUp}
@mousemove=${this.onMouseMove}
Expand All @@ -115,7 +115,7 @@ export class RemoteMousepad extends RemoteTouchpad {
@contextmenu=${this.onContextMenu}
>${this.buildIcon(this.config.icon)}${this.buildLabel(
this.config.label,
)}</mousearea
)}</toucharea
>`;
}
}
2 changes: 2 additions & 0 deletions src/models/maps/unified_remote/defaultKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export const unifiedRemoteDefaultKeys: IElementConfig[] = [
name: 'mousepad',
mouse_action: {
action: 'perform-action',
perform_action: 'unified_remote.call',
data: {
remote_id: 'Relmtech.Basic Input',
action: 'delta',
Expand All @@ -156,6 +157,7 @@ export const unifiedRemoteDefaultKeys: IElementConfig[] = [
},
multi_mouse_action: {
action: 'perform-action',
perform_action: 'unified_remote.call',
data: {
remote_id: 'Relmtech.Basic Input',
action: 'delta', // TODO find scroll action
Expand Down

0 comments on commit 81555c3

Please sign in to comment.