Fix: remove folder (introduced in #1595, GraphicElementRendered::add_click_targets, thanks to @0HyperCube ) when clicked (DocumentMessageHandler::click), except for shallow select.
This should also fix other tools, like Fill tool which hook Lmb hints.
This is caused by the detection of double click. ALL double click works fine, except for one state:
Only double click at the first shallow selection will also deepen one level (one -> shallow select, one -> deepen one level). This behavior is reproduced in the previous fine PR(71e86a06), so won't fix in this PR.
shallow hover is showed same as deep hover. (Whether to implemented?)
Fix: remove folder (introduced in #1595,
GraphicElementRendered::add_click_targets
, thanks to @0HyperCube ) when clicked (DocumentMessageHandler::click
), except for shallow select.This should also fix other tools, like Fill tool which hook Lmb hints.
Todos:
~shallow select is not working when long-interval clicks. (Should be same as https://71e86a06.graphite.pages.dev/)~
Only double click at the first shallow selection will also deepen one level (one -> shallow select, one -> deepen one level). This behavior is reproduced in the previous fine PR(71e86a06), so won't fix in this PR.
shallow hover is showed same as deep hover. (Whether to implemented?)
Closes #1723