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 and josxha committed Nov 28, 2023
1 parent fc0e419 commit 3267423
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 3267423

Please sign in to comment.