forked from DevExpress/testcafe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support of event.screenX and event.screenY properties (closes Dev…
…Express#2325) (DevExpress#2353) * [WIP]add support of event.screenX and event.screenY properties * fix ugly code * rewrite tests * skip in mobile browsers * fix obj is null problem * remove functional test
- Loading branch information
1 parent
3561478
commit eebfa3f
Showing
7 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export default function getDevicePoint (clientPoint) { | ||
if (!clientPoint) | ||
return null; | ||
|
||
const screenLeft = window.screenLeft || window.screenX; | ||
const screenTop = window.screenTop || window.screenY; | ||
const x = screenLeft + clientPoint.x; | ||
const y = screenTop + clientPoint.y; | ||
|
||
return { x, y }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.