From 18d3b1e8675e9aa653543d89f65547545181ecd8 Mon Sep 17 00:00:00 2001 From: Marcus Wu Date: Thu, 5 Nov 2020 18:56:54 +0800 Subject: [PATCH] Fix touches not work after first touch be canceled Seems a wrong method call after this change: https://github.com/Golface/SpreadsheetView/commit/dff8da74377572fae16008f96d34e8e56d14b745 --- Framework/Sources/SpreadsheetView+Touches.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/Sources/SpreadsheetView+Touches.swift b/Framework/Sources/SpreadsheetView+Touches.swift index cffd1ba4..50534a19 100644 --- a/Framework/Sources/SpreadsheetView+Touches.swift +++ b/Framework/Sources/SpreadsheetView+Touches.swift @@ -49,7 +49,7 @@ extension SpreadsheetView { func touchesCancelled(_ touches: Set, _ event: UIEvent?) { unhighlightAllItems() restorePreviousSelection() - restorePreviousSelection() + clearCurrentTouch() } func highlightItems(on touches: Set) {