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:
parent
d9b77c9588
commit
1a012a2c0b
@ -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 })
|
||||||
}
|
}
|
||||||
|
@ -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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user