Removed 'position' property from MouseTracker keyDownHandler/keyUpHandler/keyHandler functions

Positional data is not available in the corresponding DOM event objects
This commit is contained in:
Mark Salsbery 2015-01-20 09:48:28 -08:00
parent 2bd105042a
commit e87020cf78

View File

@ -1518,7 +1518,6 @@
propagate = tracker.keyDownHandler( propagate = tracker.keyDownHandler(
{ {
eventSource: tracker, eventSource: tracker,
position: getMouseRelative( event, tracker.element ),
keyCode: event.keyCode ? event.keyCode : event.charCode, keyCode: event.keyCode ? event.keyCode : event.charCode,
ctrl: event.ctrlKey, ctrl: event.ctrlKey,
shift: event.shiftKey, shift: event.shiftKey,
@ -1548,7 +1547,6 @@
propagate = tracker.keyUpHandler( propagate = tracker.keyUpHandler(
{ {
eventSource: tracker, eventSource: tracker,
position: getMouseRelative( event, tracker.element ),
keyCode: event.keyCode ? event.keyCode : event.charCode, keyCode: event.keyCode ? event.keyCode : event.charCode,
ctrl: event.ctrlKey, ctrl: event.ctrlKey,
shift: event.shiftKey, shift: event.shiftKey,
@ -1578,7 +1576,6 @@
propagate = tracker.keyHandler( propagate = tracker.keyHandler(
{ {
eventSource: tracker, eventSource: tracker,
position: getMouseRelative( event, tracker.element ),
keyCode: event.keyCode ? event.keyCode : event.charCode, keyCode: event.keyCode ? event.keyCode : event.charCode,
ctrl: event.ctrlKey, ctrl: event.ctrlKey,
shift: event.shiftKey, shift: event.shiftKey,