Merge pull request #242 from msalsbery/Touch-Bug-Fix

Fix for touch event issue #240
This commit is contained in:
iangilman 2013-10-03 16:30:15 -07:00
commit d88ce4a970
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ OPENSEADRAGON CHANGELOG
* MouseTracker now passes the original event objects to its handler methods (#23)
* MouseTracker now supports an optional 'moveHandler' method for tracking mousemove events (#215)
* Fixed: Element-relative mouse coordinates now correct if the element and/or page is scrolled (using new OpenSeadragon.getElementOffset() method) (#131)
* Fixed: Touch event issue where no canvas-click events were being raised (#240)
0.9.131:

View File

@ -1020,7 +1020,7 @@
function onMouseUpCaptured( tracker, event, noRelease, isTouch ) {
isTouch = isTouch || false;
if ( !THIS[ tracker.hash ].insideElement ) {
if ( !THIS[ tracker.hash ].insideElement || isTouch ) {
onMouseUp( tracker, event, isTouch );
}