@@ -64,27 +64,27 @@ void _handlePointerEvent(PointerEvent evt) {
64
64
this . _handlePointerHoverEvent ( evt ) ;
65
65
}
66
66
67
- HitTestResult result = null ;
67
+ HitTestResult hitTestResult = null ;
68
68
if ( evt is PointerDownEvent ) {
69
69
D . assert ( ! this . _hitTests . ContainsKey ( evt . pointer ) ) ;
70
- result = new HitTestResult ( ) ;
71
- this . hitTest ( result , evt . position ) ;
70
+ hitTestResult = new HitTestResult ( ) ;
71
+ this . hitTest ( hitTestResult , evt . position ) ;
72
72
73
- this . _hitTests [ evt . pointer ] = result ;
73
+ this . _hitTests [ evt . pointer ] = hitTestResult ;
74
74
D . assert ( ( ) => {
75
75
if ( D . debugPrintHitTestResults ) {
76
- Debug . LogFormat ( "{0}: {1}" , evt , result ) ;
76
+ Debug . LogFormat ( "{0}: {1}" , evt , hitTestResult ) ;
77
77
}
78
78
79
79
return true ;
80
80
} ) ;
81
81
}
82
82
else if ( evt is PointerUpEvent || evt is PointerCancelEvent ) {
83
- result = this . _hitTests . getOrDefault ( evt . pointer ) ;
83
+ hitTestResult = this . _hitTests . getOrDefault ( evt . pointer ) ;
84
84
this . _hitTests . Remove ( evt . pointer ) ;
85
85
}
86
86
else if ( evt . down ) {
87
- result = this . _hitTests . getOrDefault ( evt . pointer ) ;
87
+ hitTestResult = this . _hitTests . getOrDefault ( evt . pointer ) ;
88
88
}
89
89
90
90
D . assert ( ( ) => {
@@ -95,12 +95,12 @@ void _handlePointerEvent(PointerEvent evt) {
95
95
return true ;
96
96
} ) ;
97
97
98
- if ( result != null ||
98
+ if ( hitTestResult != null ||
99
99
evt is PointerHoverEvent ||
100
100
evt is PointerAddedEvent ||
101
101
evt is PointerRemovedEvent
102
102
) {
103
- this . dispatchEvent ( evt , result ) ;
103
+ this . dispatchEvent ( evt , hitTestResult ) ;
104
104
}
105
105
}
106
106
@@ -162,8 +162,8 @@ public virtual void hitTest(HitTestResult result, Offset position) {
162
162
result . add ( new HitTestEntry ( this ) ) ;
163
163
}
164
164
165
- public void dispatchEvent ( PointerEvent evt , HitTestResult result ) {
166
- if ( result == null ) {
165
+ public void dispatchEvent ( PointerEvent evt , HitTestResult hitTestResult ) {
166
+ if ( hitTestResult == null ) {
167
167
D . assert ( evt is PointerHoverEvent || evt is PointerAddedEvent || evt is PointerRemovedEvent ) ;
168
168
try {
169
169
this . pointerRouter . route ( evt ) ;
@@ -184,7 +184,7 @@ public void dispatchEvent(PointerEvent evt, HitTestResult result) {
184
184
return ;
185
185
}
186
186
187
- foreach ( HitTestEntry entry in result . path ) {
187
+ foreach ( HitTestEntry entry in hitTestResult . path ) {
188
188
try {
189
189
entry . target . handleEvent ( evt , entry ) ;
190
190
}
0 commit comments