Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit a23e56c

Browse files
committed
trace fix
1 parent 44f0ee5 commit a23e56c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Runtime/gestures/mouse_tracking.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ evt is PointerHoverEvent ||
118118

119119
_TrackedAnnotation _findAnnotation(MouseTrackerAnnotation annotation) {
120120
if (!this._trackedAnnotations.TryGetValue(annotation, out var trackedAnnotation)) {
121-
D.assert(false, "Unable to find annotation $annotation in tracked annotations. " +
121+
D.assert(false, () => "Unable to find annotation $annotation in tracked annotations. " +
122122
"Check that attachAnnotation has been called for all annotated layers.");
123123
}
124124

Runtime/rendering/proxy_box.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ void _updateAnnotations() {
19481948
D.assert(this._onPointerEnter != this._hoverAnnotation.onEnter ||
19491949
this._onPointerHover != this._hoverAnnotation.onHover ||
19501950
this._onPointerExit != this._hoverAnnotation.onExit,
1951-
"Shouldn't call _updateAnnotations if nothing has changed.");
1951+
() => "Shouldn't call _updateAnnotations if nothing has changed.");
19521952

19531953
if (this._hoverAnnotation != null && this.attached) {
19541954
RendererBinding.instance.mouseTracker.detachAnnotation(this._hoverAnnotation);

0 commit comments

Comments
 (0)