mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-02 21:36:11 +03:00
code cleanup
This commit is contained in:
parent
033c16ca85
commit
38a6189c20
1 changed files with 2 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue