mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
code cleanup
This commit is contained in:
parent
033c16ca85
commit
38a6189c20
@ -123,12 +123,8 @@ $.ReferenceStrip = function ( options ) {
|
|||||||
keyDownHandler: $.delegate( this, onKeyDown ),
|
keyDownHandler: $.delegate( this, onKeyDown ),
|
||||||
keyHandler: $.delegate( this, onKeyPress ),
|
keyHandler: $.delegate( this, onKeyPress ),
|
||||||
preProcessEventHandler: function (eventInfo) {
|
preProcessEventHandler: function (eventInfo) {
|
||||||
switch (eventInfo.eventType) {
|
if (eventInfo.eventType === 'wheel') {
|
||||||
case 'wheel':
|
|
||||||
eventInfo.preventDefault = true;
|
eventInfo.preventDefault = true;
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
Loading…
Reference in New Issue
Block a user