Skip to content

Fix duration failsafe clamping durationEnter twice instead of durationExit - #93

Open
ericlewis wants to merge 1 commit into
NobleRobot:mainfrom
ericlewis:fix/transition-duration-clamp
Open

Fix duration failsafe clamping durationEnter twice instead of durationExit#93
ericlewis wants to merge 1 commit into
NobleRobot:mainfrom
ericlewis:fix/transition-duration-clamp

Conversation

@ericlewis

Copy link
Copy Markdown

The single-frame duration failsafe added in 7225537 tests durationExit but assigns the clamped value to durationEnter:

if ((self.durationExit - self.holdTime/2) < frameDuration) then
	self.durationEnter = frameDuration + self.holdTime/2 + 0.001
end

So a too-short durationExit is left unclamped, and a valid durationEnter gets overwritten. One-word fix: assign to self.durationExit.

Noticed while looking into #87 (not necessarily the root cause of that crash, but worth fixing either way).

🤖 Generated with Claude Code

…nExit.

The single-frame duration failsafe added in 7225537 tested
durationExit but assigned the clamped value to durationEnter,
leaving durationExit unclamped. Found while triaging upstream
issue NobleRobot#87.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for cheery-choux-736619 ready!

Name Link
🔨 Latest commit 903c7b4
🔍 Latest deploy log https://app.netlify.com/projects/cheery-choux-736619/deploys/6a7af3048528f4000821ff0f
😎 Deploy Preview https://deploy-preview-93--cheery-choux-736619.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant