(element, eventType, x, y)
| 3370 | } |
| 3371 | |
| 3372 | function createTouchEvent(element, eventType, x, y) { |
| 3373 | var evnt = new window.Event(eventType); |
| 3374 | x = x || 0; |
| 3375 | y = y || 0; |
| 3376 | |
| 3377 | var touch = window.document.createTouch(window, element, Date.now(), x, y, x, y); |
| 3378 | var touches = window.document.createTouchList(touch); |
| 3379 | |
| 3380 | evnt.touches = touches; |
| 3381 | |
| 3382 | return evnt; |
| 3383 | } |
| 3384 | |
| 3385 | function supportsEventBubblingInDetachedTree() { |
| 3386 | if ('_cached' in supportsEventBubblingInDetachedTree) { |