feat(dashboard): do not drag temperature if it's turned off

This commit is contained in:
KostyaDanovsky 2017-07-10 20:13:49 +03:00
parent ae32ea40a7
commit 84a98837ac

View file

@ -303,7 +303,7 @@ export class TemperatureDraggerComponent implements AfterViewInit, OnChanges {
}
private recalculateValue(event) {
if (this.isMouseDown) {
if (this.isMouseDown && !this.off) {
const rect = this.svgRoot.nativeElement.getBoundingClientRect();
const center = {
x: rect.left + VIEW_BOX_SIZE * this.scaleFactor / 2,