From 52bebfad25d1a3b7b8558b4a3ca79b8e5f8e4041 Mon Sep 17 00:00:00 2001 From: Paul Kupper <11900073+pkupper@users.noreply.github.com> Date: Sun, 9 May 2021 10:26:47 +0200 Subject: [PATCH] Cancel in-progress drag with right click or escape key (#119) --- client/web/public/index.html | 2 +- client/web/src/main.ts | 2 + client/web/wasm/src/wrappers.rs | 1 + core/document/src/document.rs | 4 +- core/editor/src/dispatcher/events.rs | 1 + core/editor/src/tools/ellipse.rs | 13 +++--- core/editor/src/tools/line.rs | 12 +++--- core/editor/src/tools/pen.rs | 62 +++++++++++++++++----------- core/editor/src/tools/rectangle.rs | 10 +++-- core/editor/src/tools/shape.rs | 10 +++-- 10 files changed, 70 insertions(+), 47 deletions(-) diff --git a/client/web/public/index.html b/client/web/public/index.html index ab3e785f..af63f786 100644 --- a/client/web/public/index.html +++ b/client/web/public/index.html @@ -21,4 +21,4 @@