Skip to content

Commit bc6f5e2

Browse files
committed
Add clientX/clientY to event
Leaflet for example checks that attributes when panning a map
1 parent a47424b commit bc6f5e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

magictouch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ var tuio = {
7575
// Some properties
7676
// See http://dvcs.w3.org/hg/webevents/raw-file/tip/touchevents.html
7777
data.identifier = sid;
78-
data.pageX = window.innerWidth * x;
79-
data.pageY = window.innerHeight * y;
78+
data.pageX = data.clientX = window.innerWidth * x;
79+
data.pageY = data.clientY = window.innerHeight * y;
8080
data.target = document.elementFromPoint(data.pageX, data.pageY);
8181

8282
switch (type) {

0 commit comments

Comments
 (0)