Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Always commit the model layer value inside a transaction with actions disabled. #54

Merged
merged 2 commits into from
Nov 21, 2017

Conversation

jverkoey
Copy link
Contributor

If the timing's duration was 0 or the animation was instant we were setting the model layer value without disabling actions, which could potentially result in an animation occurring.

The proper model value setting logic has now been moved to the top of the animate method and the duplicate logic has been removed.

…ns disabled.

If the timing's duration was 0 or the animation was instant we were setting the model layer value without disabling actions, which could potentially result in an animation occurring.

The proper model value setting logic has now been moved to the top of the animate method and the duplicate logic has been removed.
@jverkoey jverkoey changed the title Always commit the model layer value inside a CATransaction with actions disabled. Always commit the model layer value inside a transaction with actions disabled. Nov 21, 2017
@jverkoey
Copy link
Contributor Author

jverkoey commented Nov 21, 2017

  • Add a test prior to merging.

@jverkoey jverkoey merged commit 5a3d65e into develop Nov 21, 2017
@jverkoey jverkoey deleted the alwayscommit branch November 21, 2017 18:11
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants