1
1
mirror of https://github.com/bitgapp/eqMac.git synced 2024-11-22 22:32:17 +03:00

changes to components

This commit is contained in:
Nodeful 2021-07-29 03:06:29 +03:00
parent d9b77c9588
commit 1a012a2c0b
2 changed files with 2 additions and 3 deletions

View File

@ -137,7 +137,7 @@ export class KnobComponent implements OnInit, OnDestroy {
} }
if (this.dragging) { if (this.dragging) {
this.continueAnimation = false this.continueAnimation = false
const change = -event.movementY / (100 / this.max) const change = (-event.movementY + event.movementX) / (100 / this.max)
this.value += change this.value += change
this.userChangedValue.emit({ value: this.value }) this.userChangedValue.emit({ value: this.value })
} }

View File

@ -23,8 +23,7 @@ export interface SkeuomorphSliderValueChangedEvent {
@Component({ @Component({
selector: 'eqm-skeuomorph-slider', selector: 'eqm-skeuomorph-slider',
templateUrl: './skeuomorph-slider.component.html', templateUrl: './skeuomorph-slider.component.html',
styleUrls: [ './skeuomorph-slider.component.scss' ], styleUrls: [ './skeuomorph-slider.component.scss' ]
changeDetection: ChangeDetectionStrategy.OnPush
}) })
export class SkeuomorphSliderComponent implements OnInit, OnDestroy { export class SkeuomorphSliderComponent implements OnInit, OnDestroy {
constructor ( constructor (