Skip to content

Conversation

@gspencergoog
Copy link
Contributor

@gspencergoog gspencergoog commented May 11, 2019

Description

This fixes #32525, because it now marks the compositing bits as needing to be recalculated if the mouse tracker changes its idea of whether or not a mouse is attached.

This bug occurred because the test framework was leaking state from one test to the next (the state about whether a mouse pointer was active), and so even though there was a "passing" test when run in order with the other tests in the file, when the test was run individually (or first), it would have failed and caught the bug.

This adds an assert to make sure that after each test there are no simulated mouse pointers connected, and now calls removePointer in all of the tests where this was a problem.

Related Issues

Fixes #32525

Tests

There was no need to add a test: the relevant test already existed, but was not failing in CI because of the non-hermetic test framework.

@gspencergoog
Copy link
Contributor Author

cc @goderbauer

@gspencergoog gspencergoog force-pushed the fix_layer_transforms branch from 7e65d62 to 5c16048 Compare May 13, 2019 21:12
@gspencergoog gspencergoog marked this pull request as ready for review May 13, 2019 21:17
@gspencergoog gspencergoog requested a review from dkwingsmt May 13, 2019 21:17
@gspencergoog gspencergoog merged commit a5053bf into flutter:master May 13, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RenderPointerListener breaks transforms.

3 participants