Permalink
Browse files

Fix to event handler for iOS devices (Mobile Safari)

  • Loading branch information...
mikeho committed Sep 10, 2012
1 parent c8f46c8 commit cba4958d2d846b60b92e164805cbad0f8752b228
Showing with 2 additions and 2 deletions.
  1. +2 −2 www/assets/js/_core/event.js
@@ -196,8 +196,8 @@
};
qcodo.scroll = {
- x: window.scrollX || (window.document.body) ? window.document.body.scrollLeft : null,
- y: window.scrollY || (window.document.body) ? window.document.body.scrollTop : null,
+ x: (window.document.body) ? window.document.body.scrollLeft : (window.scrollX ? window.scrollX : null),
+ y: (window.document.body) ? window.document.body.scrollTop : (window.scrollY ? window.scrollY : null),
// x: null,
// y: null,
width: (window.document.body) ? (window.document.body.scrollWidth - qcodo.client.width) : null,

0 comments on commit cba4958

Please sign in to comment.