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:
Ian Richardson
2019-10-16 08:57:05 -05:00
committed by GitHub
parent fb589337f8
commit df29a5becb
18 changed files with 185 additions and 67 deletions
+2 -2
View File
@@ -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");
}