Closed chadrolfs closed 8 years ago
Related to #3267
@pineapplespatula I've started work on this in barkin/3753
where I fix this issue (with a simple bounds check). But there is a much bigger underlying issue (#3754).
Also, even with my fix, because applyEllipse itself switches tools to superselect, we never redraw our policy borders, so clicks will not go correctly.
I tried making sense of the mask code but I'm not familiar with it. You may know the reason why or figure out how we can fix this without adding yet another check to resetBorderPoliciesThrottled call conditions.
Passing it to you, @pineapplespatula.
there is already a check for this.flux.store("tool").on("change", _borderPolicyChangeHandler);
so i'm not sure why the vector mask state changing doesn't cause the change since
are we not emiting a tool store event on the tool change?
back to @volfied
Please check out commit https://github.com/adobe-photoshop/spaces-design/commit/c8b2f31c778e2afb33e52d6cad8902f6330504de and try reproducing both bugs.
@chadrolfs please test this with the newly merged PR #3760
new doc, drag out a couple shapes, group them (cmd+g), hit M
Action tools.changeVectorMaskMode failed: TypeError: Cannot read property 'top' of null