mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Attempting to get the original target for click events
This commit is contained in:
parent
2398369883
commit
533a8ba532
@ -3272,6 +3272,7 @@
|
||||
//updateGPoint.captured = true; // Handled by updatePointerCaptured()
|
||||
updateGPoint.insideElementPressed = true;
|
||||
updateGPoint.insideElement = true;
|
||||
updateGPoint.originalTarget = eventInfo.originalEvent.target;
|
||||
updateGPoint.contactPos = gPoint.currentPos;
|
||||
updateGPoint.contactTime = gPoint.currentTime;
|
||||
updateGPoint.lastPos = updateGPoint.currentPos;
|
||||
@ -3286,6 +3287,7 @@
|
||||
gPoint.captured = false; // Handled by updatePointerCaptured()
|
||||
gPoint.insideElementPressed = true;
|
||||
gPoint.insideElement = true;
|
||||
gPoint.originalTarget = eventInfo.originalEvent.target;
|
||||
startTrackingPointer( pointsList, gPoint );
|
||||
return;
|
||||
}
|
||||
@ -3504,6 +3506,7 @@
|
||||
shift: eventInfo.originalEvent.shiftKey,
|
||||
isTouchEvent: updateGPoint.type === 'touch',
|
||||
originalEvent: eventInfo.originalEvent,
|
||||
originalTarget: updateGPoint.originalTarget,
|
||||
userData: tracker.userData
|
||||
}
|
||||
);
|
||||
|
@ -2850,6 +2850,7 @@ function onCanvasClick( event ) {
|
||||
quick: event.quick,
|
||||
shift: event.shift,
|
||||
originalEvent: event.originalEvent,
|
||||
originalTarget: event.originalTarget,
|
||||
preventDefaultAction: false
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user