Skip to content

Commit

Permalink
fix: CircleLayer not updating on pan (#1735)
Browse files Browse the repository at this point in the history
* Fix circle layer not updating on pan

* Format code
  • Loading branch information
Robbendebiene authored Nov 23, 2023
1 parent 832440b commit 2ba0c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/layer/circle_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,6 @@ class CirclePainter extends CustomPainter {
}

@override
bool shouldRepaint(CirclePainter oldDelegate) => false;
bool shouldRepaint(CirclePainter oldDelegate) =>
circles != oldDelegate.circles || map != oldDelegate.map;
}

0 comments on commit 2ba0c99

Please sign in to comment.