Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Writes to position won't propagate to positionX or positionY #45

Open
jverkoey opened this issue Mar 9, 2017 · 0 comments
Open

Writes to position won't propagate to positionX or positionY #45

jverkoey opened this issue Mar 9, 2017 · 0 comments

Comments

@jverkoey
Copy link
Contributor

jverkoey commented Mar 9, 2017

This is because each of these is a distinct property instance. This can be confusing to the end user. The "hack" fix is to always use the same property and apply constraints on it instead, e.g. position.x() and position.y().

Ideally the positionX and positionY properties would react to changes to position.

Note that changes to positionX and positionY do propagate to position because they use externalWrite to adjust the position property.

Resolving this would probably be a matter of having property do an external write to positionX and positionY, so long as this didn't cause a retain cycle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant