| OLD | NEW | 
|---|
| 1 part of touch; |  | 
| 2 |  | 
| 3 // Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file | 
| 4 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 6 | 4 | 
| 7 /** | 5 /** | 
| 8  * Click buster implementation, which is a behavior that prevents native clicks | 6  * Click buster implementation, which is a behavior that prevents native clicks | 
| 9  * from firing at undesirable times. There are two scenarios where we may want | 7  * from firing at undesirable times. There are two scenarios where we may want | 
| 10  * to 'bust' a click. | 8  * to 'bust' a click. | 
| 11  * | 9  * | 
| 12  * Buttons implemented with touch events usually have click handlers as well. | 10  * Buttons implemented with touch events usually have click handlers as well. | 
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 207       if (_hitTest(entry.element, entry.nextEntry().element, x, y)) { | 205       if (_hitTest(entry.element, entry.nextEntry().element, x, y)) { | 
| 208         entry.nextEntry().remove(); | 206         entry.nextEntry().remove(); | 
| 209         entry.remove(); | 207         entry.remove(); | 
| 210         return; | 208         return; | 
| 211       } else { | 209       } else { | 
| 212         entry = entry.nextEntry().nextEntry(); | 210         entry = entry.nextEntry().nextEntry(); | 
| 213       } | 211       } | 
| 214     } | 212     } | 
| 215   } | 213   } | 
| 216 } | 214 } | 
| OLD | NEW | 
|---|