Skip to content

Commit d7b74c7

Browse files
Copilotelliotmatson
andcommitted
Fix: port -∞ floor fix to DeltaSendFader and MatrixDirectInDeltaFader
Co-authored-by: elliotmatson <1711604+elliotmatson@users.noreply.github.com>
1 parent e7f87d6 commit d7b74c7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/actions/common.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,9 @@ export function createCommonActions(self: InstanceBaseExt<WingConfig>): Companio
869869
}
870870
state.storeDelta(cmd, delta)
871871
if (targetValue != undefined) {
872+
if (!usePercentage && targetValue < -90) {
873+
targetValue = -90
874+
}
872875
targetValue += delta
873876
ActionUtil.runTransition(cmd, 'level', event, state, transitions, targetValue, !usePercentage)
874877
}

src/actions/matrix.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ export function createMatrixActions(self: InstanceBaseExt<WingConfig>): Companio
102102
}
103103
state.storeDelta(cmd, delta)
104104
if (targetValue != undefined) {
105+
if (!usePercentage && targetValue < -90) {
106+
targetValue = -90
107+
}
105108
targetValue += delta
106109
ActionUtil.runTransition(cmd, 'level', event, state, transitions, targetValue, !usePercentage)
107110
}

0 commit comments

Comments
 (0)