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