Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pane-cycle detection: Restoring ActiveEvent can fail #294

Open
marceltaeumel opened this issue Apr 15, 2019 · 1 comment
Open

Pane-cycle detection: Restoring ActiveEvent can fail #294

marceltaeumel opened this issue Apr 15, 2019 · 1 comment
Labels

Comments

@marceltaeumel
Copy link
Contributor

In ViPane >> #beginUpdateChainWith: we reset ActiveEvent to begin a chain of pane updates programmatically in the model's #updateChildren.

(This is the second approach. The first one is event-based. See ViPane >> #beginUpdateChain using the ActiveEvent itself as update identifier to detect cyclic updates.).

However, resetting the value of ActiveEvent in an ensure-block does -- sometimes -- mix up with the system's #becomeActiveDuring:, which will then leave ActiveEvent not-nil in Morphic's deferred UI messages. In that case, Object >> #currentEvent does not yield the last input event but the value of non-nil ActiveEvent, which will be the same in deferred UI messages. Forever.

@marceltaeumel
Copy link
Contributor Author

Symptom: "Open tools attached to hand" does not work in Vivide anymore.
Fix: Evaluate in a workspace "ActiveEvent := nil"

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

No branches or pull requests

1 participant