mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Fix color picking closing more info
This commit is contained in:
parent
45990299d1
commit
63307e1c41
@ -43,7 +43,6 @@ export default new Polymer({
|
|||||||
'mouseup': 'onMouseUp',
|
'mouseup': 'onMouseUp',
|
||||||
'touchstart': 'onTouchStart',
|
'touchstart': 'onTouchStart',
|
||||||
'touchend': 'onTouchEnd',
|
'touchend': 'onTouchEnd',
|
||||||
'tap': 'onTap',
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onMouseDown(ev) {
|
onMouseDown(ev) {
|
||||||
@ -64,10 +63,6 @@ export default new Polymer({
|
|||||||
this.removeEventListener('touchmove', this.onTouchMove);
|
this.removeEventListener('touchmove', this.onTouchMove);
|
||||||
},
|
},
|
||||||
|
|
||||||
onTap(ev) {
|
|
||||||
ev.stopPropagation();
|
|
||||||
},
|
|
||||||
|
|
||||||
onTouchMove(ev) {
|
onTouchMove(ev) {
|
||||||
const touch = ev.touches[0];
|
const touch = ev.touches[0];
|
||||||
this.onColorSelect(ev, {x: touch.clientX, y: touch.clientY});
|
this.onColorSelect(ev, {x: touch.clientX, y: touch.clientY});
|
||||||
|
@ -54,7 +54,6 @@
|
|||||||
|
|
||||||
<ha-color-picker on-colorselected='colorPicked' width='350' height='200'>
|
<ha-color-picker on-colorselected='colorPicked' width='350' height='200'>
|
||||||
</ha-color-picker>
|
</ha-color-picker>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</dom-module>
|
</dom-module>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user