(element, eventType, x, y)
| 3691 | } |
| 3692 | |
| 3693 | function createTouchEvent(element, eventType, x, y) { |
| 3694 | var evnt = new window.Event(eventType); |
| 3695 | x = x || 0; |
| 3696 | y = y || 0; |
| 3697 | |
| 3698 | var touch = window.document.createTouch(window, element, Date.now(), x, y, x, y); |
| 3699 | var touches = window.document.createTouchList(touch); |
| 3700 | |
| 3701 | evnt.touches = touches; |
| 3702 | |
| 3703 | return evnt; |
| 3704 | } |
| 3705 | |
| 3706 | function supportsEventBubblingInDetachedTree() { |
| 3707 | if ('_cached' in supportsEventBubblingInDetachedTree) { |