Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
add pageX pageY to MouseEvent (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
safareli authored and garyb committed Jul 20, 2017
1 parent 91996ab commit 6da1fd5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/DOM/Event/MouseEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ exports.clientY = function (e) {
return e.clientY;
};

exports.pageX = function (e) {
return e.pageX;
};

exports.pageY = function (e) {
return e.pageY;
};

exports.ctrlKey = function (e) {
return e.ctrlKey;
};
Expand Down
6 changes: 6 additions & 0 deletions src/DOM/Event/MouseEvent.purs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ module DOM.Event.MouseEvent
, screenY
, clientX
, clientY
, pageX
, pageY
, ctrlKey
, shiftKey
, altKey
Expand Down Expand Up @@ -35,6 +37,10 @@ foreign import clientX :: MouseEvent -> Int

foreign import clientY :: MouseEvent -> Int

foreign import pageX :: MouseEvent -> Int

foreign import pageY :: MouseEvent -> Int

foreign import ctrlKey :: MouseEvent -> Boolean

foreign import shiftKey :: MouseEvent -> Boolean
Expand Down

0 comments on commit 6da1fd5

Please sign in to comment.