| @@ 3264-3280 (lines=17) @@ | ||
| 3261 | } | |
| 3262 | }); | |
| 3263 | ||
| 3264 |     function getDocumentSize(doc) { | |
| 3265 | var documentElement, body, scrollWidth, clientWidth; | |
| 3266 | var offsetWidth, scrollHeight, clientHeight, offsetHeight; | |
| 3267 | var max = Math.max; | |
| 3268 | documentElement = doc.documentElement; | |
| 3269 | body = doc.body; | |
| 3270 | scrollWidth = max(documentElement.scrollWidth, body.scrollWidth); | |
| 3271 | clientWidth = max(documentElement.clientWidth, body.clientWidth); | |
| 3272 | offsetWidth = max(documentElement.offsetWidth, body.offsetWidth); | |
| 3273 | scrollHeight = max(documentElement.scrollHeight, body.scrollHeight); | |
| 3274 | clientHeight = max(documentElement.clientHeight, body.clientHeight); | |
| 3275 | offsetHeight = max(documentElement.offsetHeight, body.offsetHeight); | |
| 3276 |       return { | |
| 3277 | width: scrollWidth < offsetWidth ? clientWidth : scrollWidth, | |
| 3278 | height: scrollHeight < offsetHeight ? clientHeight : scrollHeight | |
| 3279 | }; | |
| 3280 | } | |
| 3281 |     function updateWithTouchData(e) { | |
| 3282 | var keys, i; | |
| 3283 |       if (e.changedTouches) { | |
| @@ 2741-2757 (lines=17) @@ | ||
| 2738 | }; | |
| 2739 | } | |
| 2740 | ||
| 2741 |     function getDocumentSize(doc) { | |
| 2742 | var documentElement, body, scrollWidth, clientWidth; | |
| 2743 | var offsetWidth, scrollHeight, clientHeight, offsetHeight; | |
| 2744 | var max = Math.max; | |
| 2745 | documentElement = doc.documentElement; | |
| 2746 | body = doc.body; | |
| 2747 | scrollWidth = max(documentElement.scrollWidth, body.scrollWidth); | |
| 2748 | clientWidth = max(documentElement.clientWidth, body.clientWidth); | |
| 2749 | offsetWidth = max(documentElement.offsetWidth, body.offsetWidth); | |
| 2750 | scrollHeight = max(documentElement.scrollHeight, body.scrollHeight); | |
| 2751 | clientHeight = max(documentElement.clientHeight, body.clientHeight); | |
| 2752 | offsetHeight = max(documentElement.offsetHeight, body.offsetHeight); | |
| 2753 |       return { | |
| 2754 | width: scrollWidth < offsetWidth ? clientWidth : scrollWidth, | |
| 2755 | height: scrollHeight < offsetHeight ? clientHeight : scrollHeight | |
| 2756 | }; | |
| 2757 | } | |
| 2758 |     function updateWithTouchData(e) { | |
| 2759 | var keys, i; | |
| 2760 |       if (e.changedTouches) { | |