Update view.dart (#81373)

This commit is contained in:
Tong Mu 2021-04-29 22:54:03 -07:00 committed by GitHub
parent 001323a275
commit 3955ef0d02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,9 +183,6 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
/// [AnnotatedRegionLayer]s annotated for mouse tracking.
HitTestResult hitTestMouseTrackers(Offset position) {
assert(position != null);
// Layer hit testing is done using device pixels, so we have to convert
// the logical coordinates of the event location back to device pixels
// here.
final BoxHitTestResult result = BoxHitTestResult();
hitTest(result, position: position);
return result;