Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed reported values for event.screenX(Y). fixes issues #279

  • Loading branch information...
commit 8f76f8870d26f8f7804854703accd8d647cb9647 1 parent 8ad705d
authored February 18, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  lib/ripple/touchEventEmulator.js
8  lib/ripple/touchEventEmulator.js
@@ -53,13 +53,13 @@ function _raiseTouchEvent(mouseEvent) {
53 53
     }
54 54
 
55 55
     touchObj = {
56  
-        clientX: mouseEvent.clientX,
57  
-        clientY: mouseEvent.clientY,
  56
+        clientX: mouseEvent.pageX,
  57
+        clientY: mouseEvent.pageY,
58 58
         identifier: "",
59 59
         pageX: mouseEvent.pageX,
60 60
         pageY: mouseEvent.pageY,
61  
-        screenX: mouseEvent.screenX,
62  
-        screenY: mouseEvent.screenY,
  61
+        screenX: mouseEvent.pageX,
  62
+        screenY: mouseEvent.pageY,
63 63
         target: mouseEvent.target
64 64
     };
65 65
 

0 notes on commit 8f76f88

Please sign in to comment.
Something went wrong with that request. Please try again.