OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 body { | 4 body { |
5 height: 2000px; | 5 height: 2000px; |
6 } | 6 } |
7 #plugin { | 7 #plugin { |
8 position: absolute; | 8 position: absolute; |
9 top: 500px; | 9 top: 500px; |
10 width: 150px; | 10 width: 150px; |
(...skipping 18 matching lines...) Expand all Loading... |
29 // These events should not reach the plugin since it's futher down on th
e page. | 29 // These events should not reach the plugin since it's futher down on th
e page. |
30 eventSender.gestureShowPress(30, 30); | 30 eventSender.gestureShowPress(30, 30); |
31 eventSender.gestureShowPress(30, 530); | 31 eventSender.gestureShowPress(30, 530); |
32 | 32 |
33 // Send some gesture events to the plugin. | 33 // Send some gesture events to the plugin. |
34 var positionX = 30; | 34 var positionX = 30; |
35 var positionY = 110; | 35 var positionY = 110; |
36 eventSender.gestureTap(positionX, positionY); | 36 eventSender.gestureTap(positionX, positionY); |
37 eventSender.gestureScrollBegin(positionX, positionY); | 37 eventSender.gestureScrollBegin(positionX, positionY); |
38 eventSender.gestureScrollUpdate(30, 0); | 38 eventSender.gestureScrollUpdate(30, 0); |
39 eventSender.gestureScrollUpdateWithoutPropagation(30, 0); | 39 eventSender.gestureScrollUpdate(30, 0, true); |
40 eventSender.gestureScrollEnd(0, 0); | 40 eventSender.gestureScrollEnd(0, 0); |
41 } | 41 } |
42 | 42 |
43 </script> | 43 </script> |
44 </body> | 44 </body> |
45 </html> | 45 </html> |
OLD | NEW |