Since r11544, the event xy property is the average of all touch pixel locations. This test should have been updated with that change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11560 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+2
-2
@@ -318,8 +318,8 @@
|
|||||||
touches: [{clientX: 1, clientY: 1}, {clientX: 2, clientY: 2}]
|
touches: [{clientX: 1, clientY: 1}, {clientX: 2, clientY: 2}]
|
||||||
};
|
};
|
||||||
events.handleBrowserEvent(evt);
|
events.handleBrowserEvent(evt);
|
||||||
t.eq(evt.clientX, 1, "evt.clientX value is correct");
|
t.eq(evt.clientX, 1.5, "evt.clientX value is correct");
|
||||||
t.eq(evt.clientY, 1, "evt.clientY value is correct");
|
t.eq(evt.clientY, 1.5, "evt.clientY value is correct");
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_Events_destroy (t) {
|
function test_Events_destroy (t) {
|
||||||
|
|||||||
Reference in New Issue
Block a user