| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 #testArea { | 3 #testArea { |
| 4 position: absolute; | 4 position: absolute; |
| 5 right: 50px; | 5 right: 50px; |
| 6 top: 50px; | 6 top: 50px; |
| 7 } | 7 } |
| 8 #target { | 8 #target { |
| 9 width: 10px; | 9 width: 10px; |
| 10 height: 10px; | 10 height: 10px; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 clearCounts(documents); | 88 clearCounts(documents); |
| 89 eventSender.gestureScrollBegin(targetX, targetY); | 89 eventSender.gestureScrollBegin(targetX, targetY); |
| 90 logCounts('GestureScrollBegin', documents); | 90 logCounts('GestureScrollBegin', documents); |
| 91 | 91 |
| 92 eventSender.gestureTapCancel(targetX, targetY); | 92 eventSender.gestureTapCancel(targetX, targetY); |
| 93 logCounts('GestureTapCancel', documents); | 93 logCounts('GestureTapCancel', documents); |
| 94 | 94 |
| 95 eventSender.gestureScrollUpdate(0, 5); | 95 eventSender.gestureScrollUpdate(0, 5); |
| 96 logCounts('GestureScrollUpdate', documents); | 96 logCounts('GestureScrollUpdate', documents); |
| 97 | 97 |
| 98 eventSender.gestureScrollEnd(); | 98 eventSender.gestureScrollEnd(0, 5); |
| 99 logCounts('GestureScrollEnd', documents); | 99 logCounts('GestureScrollEnd', documents); |
| 100 } | 100 } |
| 101 | 101 |
| 102 function centerOf(element) { | 102 function centerOf(element) { |
| 103 var targetRect = element.getBoundingClientRect(); | 103 var targetRect = element.getBoundingClientRect(); |
| 104 return { | 104 return { |
| 105 x: targetRect.left + targetRect.width / 2, | 105 x: targetRect.left + targetRect.width / 2, |
| 106 y: targetRect.top + targetRect.height / 2 | 106 y: targetRect.top + targetRect.height / 2 |
| 107 }; | 107 }; |
| 108 } | 108 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 123 sendEvents(point.x, point.y, [document, doc2, doc3]); | 123 sendEvents(point.x, point.y, [document, doc2, doc3]); |
| 124 debug(''); | 124 debug(''); |
| 125 | 125 |
| 126 debug('Event near boundary of two iframes'); | 126 debug('Event near boundary of two iframes'); |
| 127 debug('---------------------'); | 127 debug('---------------------'); |
| 128 var rect = frame.getBoundingClientRect(); | 128 var rect = frame.getBoundingClientRect(); |
| 129 sendEvents(rect.left + 3, rect.top + 3, [document, doc2, doc3]); | 129 sendEvents(rect.left + 3, rect.top + 3, [document, doc2, doc3]); |
| 130 debug(''); | 130 debug(''); |
| 131 } | 131 } |
| 132 </script> | 132 </script> |
| OLD | NEW |