From 875771291c666e4cb673a5419d4b4bd2d3f9fded Mon Sep 17 00:00:00 2001
From: Pascal Engeler <engelerp@phys.ethz.ch>
Date: Thu, 12 Aug 2021 22:02:56 +0200
Subject: [PATCH] commented out dangling checks, that's touch-only

---
 src/drawing_handler.cpp         | 7 ++++++-
 src/slim_blockchain_handler.cpp | 3 +++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/drawing_handler.cpp b/src/drawing_handler.cpp
index 1b61c7f..c8124dd 100644
--- a/src/drawing_handler.cpp
+++ b/src/drawing_handler.cpp
@@ -63,10 +63,15 @@ void DrawingHandler::update(Toolbox& tb) {
 			}
 		}
 	}
-	/*Catch dangling Drawers, no touches means no drawers*/
+
+	/*
+	//This is touchscreen-only
+	//Catch dangling Drawers, no touches means no drawers
 	if (drawpairs_.size() > 0 && tb.current_touchIDs.size() == 0) {
 		drawpairs_.clear();
 	}
+	*/
+
 	/*We can return here if MSTATE is not interesting*/
 	if (tb.m_state != static_cast<int>(MSTATE::DRAW) && tb.m_state != static_cast<int>(MSTATE::ERASE)) {
 		return;
diff --git a/src/slim_blockchain_handler.cpp b/src/slim_blockchain_handler.cpp
index 2b47907..dbd16e6 100644
--- a/src/slim_blockchain_handler.cpp
+++ b/src/slim_blockchain_handler.cpp
@@ -32,11 +32,14 @@ void SlimBlockchainHandler::update(Toolbox& tb) {
 		}
 	}
 
+	/*
+	//This is touchscreen-only
 	//Catch dangling Blocks, if no touches, then no dragging
 	if (!skip_events && dragpairs_.size() > 0 && tb.current_touchIDs.size() == 0) {
 		clear_blocks_();
 		skip_events = true;
 	}
+	*/
 
 	if (tb.m_state == static_cast<int>(MSTATE::IMMEDIATE) && !skip_events) {
 		/*Handle Events*/
-- 
GitLab