Add double tap action (#3879)
* add dbltap_action * apply to picture-glance * types and boolean * fix typo * simplify double tap logic * extract hasDoubleClick functionality * address comments * address comments * double_tap_action
This commit is contained in:
@@ -12,7 +12,7 @@ export class DemoUtilLongPress extends LitElement {
|
||||
() => html`
|
||||
<ha-card>
|
||||
<mwc-button
|
||||
@ha-click="${this._handleTap}"
|
||||
@ha-click="${this._handleClick}"
|
||||
@ha-hold="${this._handleHold}"
|
||||
.longPress="${longPress()}"
|
||||
>
|
||||
@@ -28,7 +28,7 @@ export class DemoUtilLongPress extends LitElement {
|
||||
`;
|
||||
}
|
||||
|
||||
private _handleTap(ev: Event) {
|
||||
private _handleClick(ev: Event) {
|
||||
this._addValue(ev, "tap");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user