(x, y)
| 709 | return el && (el.nodeName || "").toLowerCase() === tag.toLowerCase(); |
| 710 | } |
| 711 | function directionCheck(x, y) { |
| 712 | x = x > 0 ? 1 : -1; |
| 713 | y = y > 0 ? 1 : -1; |
| 714 | if (direction.x !== x || direction.y !== y) { |
| 715 | direction.x = x; |
| 716 | direction.y = y; |
| 717 | que = []; |
| 718 | lastScroll = 0; |
| 719 | window.cancelAnimationFrame(pending); |
| 720 | pending = null; |
| 721 | } |
| 722 | } |
| 723 | function isTouchpad(deltaY) { |
| 724 | if (!deltaY) return; |
| 725 | if (!deltaBuffer.length) { |