From 1366bb7abeec157dd300446ded46e780ec3f2236 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Fri, 7 Nov 2014 16:07:04 -0800 Subject: [PATCH] Touch-ups for #481 --- changelog.txt | 1 + test/events.js | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 33787519..a1166a8d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -18,6 +18,7 @@ OPENSEADRAGON CHANGELOG * Viewport.setRotation now allows all rotation angles (#466) * Pinch rotate is now available (defaults to off) (#468) * Added option for home button to fill viewer (#474) +* Now handling iframe/frame mouseouts properly (#481) 1.1.1: diff --git a/test/events.js b/test/events.js index 9b58b9e2..ba1a36e2 100644 --- a/test/events.js +++ b/test/events.js @@ -461,7 +461,6 @@ simulateMove(1, 1, 5); simulateMove(-1, -1, 5); simulateLeaveFrame(-1, -1); - simulateMove(-1, -1, 5); // you don't actually receive the mouseup if you mouseup outside of the document assessGestureExpectations({ description: 'enter-press-move-exit-move-release-outside (drag, release outside iframe): ', @@ -469,7 +468,7 @@ exitCount: 1, pressCount: 1, releaseCount: 1, - moveCount: 15, + moveCount: 10, clickCount: 0, dblClickCount: 0, dragCount: 10, @@ -624,7 +623,7 @@ var checkOriginalEventReceivedViewer = function ( event ) { eventsHandledViewer++; - //TODO Provide a better check for the original event...simulate doesn't currently extend the object + //TODO Provide a better check for the original event...simulate doesn't currently extend the object // with arbitrary user data. if ( event && event.originalEvent ) { originalEventsPassedViewer++; @@ -656,7 +655,7 @@ if ( event && event.eventSource === mouseTracker ) { eventSourcePassedMouseTracker++; } - //TODO Provide a better check for the original event...simulate doesn't currently extend the object + //TODO Provide a better check for the original event...simulate doesn't currently extend the object // with arbitrary user data. if ( event && event.originalEvent ) { originalEventsPassedMouseTracker++;