mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
viewporter: fixed tests
This commit is contained in:
parent
5d8961d175
commit
c36a44bfb5
@ -119,7 +119,7 @@ function test_swipey() {
|
||||
}).trigger(viewporter.ACTIVE ? 'viewportchange' : 'resize');
|
||||
$('canvas').bind(iOS ? 'touchstart' : 'mousedown', function (e) {
|
||||
e.preventDefault();
|
||||
var touches = iOS ? e.originalEvent.changedTouches : [e.originalEvent];
|
||||
var touches = iOS ? (<any>e.originalEvent).changedTouches : [e.originalEvent];
|
||||
var identifier;
|
||||
for (var i = 0; i < touches.length; i++) {
|
||||
identifier = touches[i].identifier || 'mouse';
|
||||
@ -133,7 +133,7 @@ function test_swipey() {
|
||||
});
|
||||
|
||||
$('canvas').bind(iOS ? 'touchmove' : 'mousemove', function (e) {
|
||||
var touches = iOS ? e.originalEvent.changedTouches : [e.originalEvent];
|
||||
var touches = iOS ? (<any>e.originalEvent).changedTouches : [e.originalEvent];
|
||||
var identifier;
|
||||
for (var i = 0; i < touches.length; i++) {
|
||||
identifier = touches[i].identifier || 'mouse';
|
||||
@ -144,7 +144,7 @@ function test_swipey() {
|
||||
});
|
||||
|
||||
$('canvas').bind(iOS ? 'touchend' : 'mouseup', function (e) {
|
||||
var touches = iOS ? e.originalEvent.changedTouches : [e.originalEvent];
|
||||
var touches = iOS ? (<any>e.originalEvent).changedTouches : [e.originalEvent];
|
||||
var identifier;
|
||||
for (var i = 0; i < touches.length; i++) {
|
||||
identifier = touches[i].identifier || 'mouse';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user