mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 19:41:36 -05:00
f7ec5d50cc
#9807 made the Selection, Direct Selection and Group Selection tools, Object Highlighting and a right-click's selection pick a closed path with no fill by a click inside it (#9175). That is now an option: Preferences > Selection & Anchor Display > Select Inside Unfilled Shapes (`selectInsideUnfilledShapes`), off by default. With it off, a click or drag inside an unfilled shape that hits nothing else there starts a marquee, as it did before #9807. With it on, the tools behave as #9807 made them. Object Selection by Path Only still turns the inside off either way. Tests that asserted the #9807 default now turn the preference on before expecting the inside to select the shape, and also check that it selects nothing by default: the MCP test (renamed to a_click_inside_an_unfilled_shape_selects_it_only_with_the_preference), the outside-stroke reach test and the Direct Selection center point test. A new Selection tool test checks that a drag inside an unfilled rectangle makes a marquee and leaves it in place by default, and moves it with the preference on.