mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-07 02:51:33 +00:00
A click on a form control that form_controls::interact leaves to the grid (Ctrl or Cmd+click, which selects the control; a click on a selected control, which moves it) fell through to the slicer tile branch, which looks only at slicers, so a control placed over a slicer's value tile had the tile toggled and the slicer selected before the generic object handling could select or drag the control. The slicer tile branch now runs only when the press lands on a slicer by the same test the generic path uses (the selected object's handle first, then the topmost object), so the z-order decides once; a control over a tile, and a selected object's handle over one, keep the generic path. Charts, pictures and shapes lie beneath slicers in that order, so they were not affected. Test (kittest): a_control_over_a_slicer_tile_keeps_the_generic_path_on_a_selecting_click (a button over the first tile; Cmd+click selects the button and the slicer's filter is unchanged; a click on the selected button still toggles nothing; an uncovered tile still toggles).