From 8dcb0346f22357cd6fc41eb2015136f355c63b19 Mon Sep 17 00:00:00 2001 From: Scallop Ye Date: Wed, 20 Nov 2024 08:24:41 +0800 Subject: [PATCH] Avoid tracking `cursor_pos` in effect --- client/src/game_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/game_view.rs b/client/src/game_view.rs index 05a165c..aa7acd4 100644 --- a/client/src/game_view.rs +++ b/client/src/game_view.rs @@ -371,7 +371,7 @@ pub fn GameView( let (p, out) = calc().canvas_to_board_pos(po.x, po.y); let new_cursor = (!out).then_some(p); - if new_cursor != cursor_pos.get() { + if new_cursor != cursor_pos.get_untracked() { cursor_pos.set(new_cursor); } new_cursor