Skip to content

Commit

Permalink
Avoid tracking cursor_pos in effect
Browse files Browse the repository at this point in the history
  • Loading branch information
yescallop committed Nov 20, 2024
1 parent 636153e commit 8dcb034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/game_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dcb034

Please sign in to comment.