mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
Count the selected Hand gesture when H is held
This commit is contained in:
1 parent
1937db57bf
commit
746b8f3dba
1 file changed
+3
@@ -655,6 +655,9 @@ pub(crate) fn run(app: &mut VectorcraftApp, ui: &mut Ui, pass: &ToolPass) -> Too
|
||||
let mut hand = app.canvas.hand.take().unwrap_or_else(|| craft::ui::canvas::HandTool::new(options));
|
||||
hand.options = options;
|
||||
let response = host_run(app, ui, pass, &mut hand);
|
||||
if response.gesture.is_some() && !view_tool_held(app) && ui.input(|i| i.pointer.primary_down()) {
|
||||
crate::shortcuts::note_tool_use(app);
|
||||
}
|
||||
app.canvas.hand = Some(hand);
|
||||
response
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user