mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-20 09:41:45 +03:00
MouseTracker Original Events in handlers
Comment & Formatting fixes
This commit is contained in:
parent
b3fa8f1184
commit
56f5b9fb74
@ -184,9 +184,8 @@ $.Button = function( options ) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO: This didn't match handler signature in MouseTracker. Investigate!
|
focusHandler: function ( tracker, eventData ) {
|
||||||
focusHandler: function ( tracker, eventData ) { //position, buttonDownElement, buttonDownAny
|
this.enterHandler( tracker, eventData );
|
||||||
//this.enterHandler( tracker, eventData ); //position, buttonDownElement, buttonDownAny
|
|
||||||
_this.raiseEvent( "onFocus", _this );
|
_this.raiseEvent( "onFocus", _this );
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -197,9 +196,8 @@ $.Button = function( options ) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO: This didn't match handler signature in MouseTracker. Investigate!
|
blurHandler: function ( tracker, eventData ) {
|
||||||
blurHandler: function ( tracker, eventData ) { //position, buttonDownElement, buttonDownAny
|
this.exitHandler( tracker, eventData );
|
||||||
//this.exitHandler( tracker, eventData ); //position, buttonDownElement, buttonDownAny
|
|
||||||
_this.raiseEvent( "onBlur", _this );
|
_this.raiseEvent( "onBlur", _this );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -705,7 +705,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
* @name OpenSeadragon.getElementOffset
|
* @name OpenSeadragon.getElementOffset
|
||||||
* @param {Element|String} element - the element we want the position for.
|
* @param {Element|String} element - the element we want the position for.
|
||||||
* @returns {Point} - the position of the upper left corner of the element adjusted for current page and/or element scroll.
|
* @returns {Point} - the position of the upper left corner of the element adjusted for current page and/or element scroll.
|
||||||
* Inspired by jQuery.fn.offset() (jquery 1.10.1)
|
|
||||||
*/
|
*/
|
||||||
getElementOffset: function( element ) {
|
getElementOffset: function( element ) {
|
||||||
var doc = element && element.ownerDocument,
|
var doc = element && element.ownerDocument,
|
||||||
@ -719,11 +718,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
|
|
||||||
docElement = doc.documentElement;
|
docElement = doc.documentElement;
|
||||||
|
|
||||||
// Make sure it's not a disconnected DOM node
|
|
||||||
//if ( !jQuery.contains( docElement, element ) ) {
|
|
||||||
// return new $.Point();
|
|
||||||
//}
|
|
||||||
|
|
||||||
if ( typeof element.getBoundingClientRect !== typeof undefined ) {
|
if ( typeof element.getBoundingClientRect !== typeof undefined ) {
|
||||||
boundingRect = element.getBoundingClientRect();
|
boundingRect = element.getBoundingClientRect();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user