Bug 1001945 - added more logging to gesture tracker tests to monitor pointer events. r=marcoz

---
 accessible/src/jsat/Gestures.jsm       | 4 ++++
 accessible/src/jsat/PointerAdapter.jsm | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
This commit is contained in:
Yura Zenevich 2014-05-05 14:00:07 -04:00
parent b9006baffb
commit f9f981e4bf
2 changed files with 4 additions and 4 deletions

View File

@ -210,6 +210,10 @@ this.GestureTracker = { // jshint ignore:line
* @param {Number} aTimeStamp A new pointer event timeStamp.
*/
handle: function GestureTracker_handle(aDetail, aTimeStamp) {
Logger.debug(() => {
return ['Pointer event', aDetail.type, 'at:', aTimeStamp,
JSON.stringify(aDetail.points)];
});
this[this.current ? '_update' : '_init'](aDetail, aTimeStamp);
},

View File

@ -201,10 +201,6 @@ this.PointerAdapter = { // jshint ignore:line
handleEvent: function PointerAdapter_handleEvent(aDetail) {
let timeStamp = Date.now();
Logger.debug(() => {
return ['Pointer event', aDetail.type, 'at:', timeStamp,
JSON.stringify(aDetail.points)];
});
GestureTracker.handle(aDetail, timeStamp);
}
};