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

fixed Advanced EQ Global gain slider not animating

This commit is contained in:
nodeful 2020-04-25 15:10:58 +01:00
parent 3a56f5385d
commit 5668c15a2c
4 changed files with 5 additions and 6 deletions

View File

@ -13,8 +13,8 @@ import AMCoreAudio
struct Constants { struct Constants {
#if DEBUG #if DEBUG
// static let UI_ENDPOINT_URL = "http://localhost:4200" static let UI_ENDPOINT_URL = "http://localhost:4200"
static let UI_ENDPOINT_URL = "https://ui-v000.eqmac.app" // static let UI_ENDPOINT_URL = "https://ui-v000.eqmac.app"
static let DEBUG = true static let DEBUG = true
#else #else
static let DEBUG = false static let DEBUG = false

View File

@ -1,9 +1,9 @@
{ {
"name": "eqmac", "name": "eqmac",
"version": "0.0.4", "version": "0.0.5",
"scripts": { "scripts": {
"start": "ng serve", "start": "ng serve",
"build": "ng build --prod", "build": "rm -rf dist/ && ng build --prod",
"package": "npm run build && cd dist/ && zip -r -D ../ui.zip * -x '*.DS_Store'", "package": "npm run build && cd dist/ && zip -r -D ../ui.zip * -x '*.DS_Store'",
"deploy": "export $(egrep -v '^#' .env | xargs) && ./scripts/deploy.sh", "deploy": "export $(egrep -v '^#' .env | xargs) && ./scripts/deploy.sh",
"purge-cache": "./node_modules/.bin/ts-node -O '{\"module\":\"commonjs\"}' ./scripts/purge-cache.ts" "purge-cache": "./node_modules/.bin/ts-node -O '{\"module\":\"commonjs\"}' ./scripts/purge-cache.ts"

View File

@ -73,7 +73,7 @@ export class AdvancedEqualizerComponent extends EqualizerComponent implements On
// TODO: Refactor this bollocks // TODO: Refactor this bollocks
// Global // Global
const currentGlobalGain = this.global const currentGlobalGain = this.global
if (this.global !== currentGlobalGain) { if (this.global !== this.selectedPreset.gains.global) {
this.stickSlidersToMiddle = false this.stickSlidersToMiddle = false
this.change.detectChanges() this.change.detectChanges()
this.transition.perform(currentGlobalGain, this.selectedPreset.gains.global, value => { this.transition.perform(currentGlobalGain, this.selectedPreset.gains.global, value => {
@ -141,7 +141,6 @@ export class AdvancedEqualizerComponent extends EqualizerComponent implements On
protected setupEvents () { protected setupEvents () {
this.service.onPresetsChanged(presets => { this.service.onPresetsChanged(presets => {
console.log(presets)
if (!presets) return if (!presets) return
this.presets = presets this.presets = presets
}) })