mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 16:30:13 +01:00
feat(dashboard): do not drag temperature if it's turned off
This commit is contained in:
parent
ae32ea40a7
commit
84a98837ac
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ export class TemperatureDraggerComponent implements AfterViewInit, OnChanges {
|
||||||
}
|
}
|
||||||
|
|
||||||
private recalculateValue(event) {
|
private recalculateValue(event) {
|
||||||
if (this.isMouseDown) {
|
if (this.isMouseDown && !this.off) {
|
||||||
const rect = this.svgRoot.nativeElement.getBoundingClientRect();
|
const rect = this.svgRoot.nativeElement.getBoundingClientRect();
|
||||||
const center = {
|
const center = {
|
||||||
x: rect.left + VIEW_BOX_SIZE * this.scaleFactor / 2,
|
x: rect.left + VIEW_BOX_SIZE * this.scaleFactor / 2,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue