From e87020cf7868689b3a55584b60cc6b275d1531d3 Mon Sep 17 00:00:00 2001 From: Mark Salsbery Date: Tue, 20 Jan 2015 09:48:28 -0800 Subject: [PATCH 1/2] Removed 'position' property from MouseTracker keyDownHandler/keyUpHandler/keyHandler functions Positional data is not available in the corresponding DOM event objects --- src/mousetracker.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mousetracker.js b/src/mousetracker.js index 9e8f25ef..86e87076 100644 --- a/src/mousetracker.js +++ b/src/mousetracker.js @@ -1518,7 +1518,6 @@ propagate = tracker.keyDownHandler( { eventSource: tracker, - position: getMouseRelative( event, tracker.element ), keyCode: event.keyCode ? event.keyCode : event.charCode, ctrl: event.ctrlKey, shift: event.shiftKey, @@ -1548,7 +1547,6 @@ propagate = tracker.keyUpHandler( { eventSource: tracker, - position: getMouseRelative( event, tracker.element ), keyCode: event.keyCode ? event.keyCode : event.charCode, ctrl: event.ctrlKey, shift: event.shiftKey, @@ -1578,7 +1576,6 @@ propagate = tracker.keyHandler( { eventSource: tracker, - position: getMouseRelative( event, tracker.element ), keyCode: event.keyCode ? event.keyCode : event.charCode, ctrl: event.ctrlKey, shift: event.shiftKey, From 7c39794bd9fce4e6ee5a7fabcc3712e912e0d8a8 Mon Sep 17 00:00:00 2001 From: Mark Salsbery Date: Tue, 20 Jan 2015 09:52:18 -0800 Subject: [PATCH 2/2] changelog update --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index e3bd3156..e6c0369e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -20,6 +20,7 @@ OPENSEADRAGON CHANGELOG * Requesting keyboard focus when viewer is clicked (#537) * Arrow key navigation fixed across platforms (#565) * Removed textarea element from viewer DOM. Viewer.canvas now handles keyboard navigation (#569) +* Removed 'position' property from MouseTracker keyDownHandler/keyUpHandler/keyHandler functions (#573) 1.2.0: