mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
iOS touch enter/exit fix for BUttonGroup
This commit is contained in:
parent
d9dfd0a435
commit
bd52f38788
@ -103,9 +103,17 @@ $.ButtonGroup = function( options ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
pressHandler: function ( event ) {
|
||||||
|
if ( event.pointerType === 'touch' && !$.MouseTracker.haveTouchEnter ) {
|
||||||
|
var i;
|
||||||
|
for ( i = 0; i < _this.buttons.length; i++ ) {
|
||||||
|
_this.buttons[ i ].notifyGroupEnter();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
releaseHandler: function ( event ) {
|
releaseHandler: function ( event ) {
|
||||||
var i;
|
var i;
|
||||||
if ( !event.insideElementReleased ) {
|
if ( !event.insideElementReleased || ( event.pointerType === 'touch' && !$.MouseTracker.haveTouchEnter ) ) {
|
||||||
for ( i = 0; i < _this.buttons.length; i++ ) {
|
for ( i = 0; i < _this.buttons.length; i++ ) {
|
||||||
_this.buttons[ i ].notifyGroupExit();
|
_this.buttons[ i ].notifyGroupExit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user