From cc1b6b7c6ff05467e76ba0c774ae557cd34f0ac5 Mon Sep 17 00:00:00 2001 From: Mark Salsbery Date: Tue, 13 Jan 2015 08:41:02 -0800 Subject: [PATCH] Minor events.js test comment fix --- test/events.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/events.js b/test/events.js index 43069e96..5f850082 100644 --- a/test/events.js +++ b/test/events.js @@ -201,15 +201,16 @@ var simulateLeave = function (x, y) { simEvent.clientX = offset.left + x; simEvent.clientY = offset.top + y; - // simEvent.relatedTarget = document.body; - // $canvas.simulate( OpenSeadragon.MouseTracker.haveMouseEnter ? 'mouseleave' : 'mouseout', simEvent ); - //}; + simEvent.relatedTarget = document.body; + $canvas.simulate( OpenSeadragon.MouseTracker.haveMouseEnter ? 'mouseleave' : 'mouseout', simEvent ); + }; + //var simulateLeaveFrame = function (x, y) { // simEvent.clientX = offset.left + x; // simEvent.clientY = offset.top + y; // simEvent.relatedTarget = document.getElementsByTagName("html")[0]; - $canvas.simulate( OpenSeadragon.MouseTracker.haveMouseEnter ? 'mouseleave' : 'mouseout', simEvent ); - }; + // $canvas.simulate( OpenSeadragon.MouseTracker.haveMouseEnter ? 'mouseleave' : 'mouseout', simEvent ); + //}; var simulateDown = function (x, y) { simEvent.button = 0;