code cleanup

This commit is contained in:
Mark Salsbery 2021-03-16 11:37:32 -07:00
parent 033c16ca85
commit 38a6189c20

View File

@ -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;
}
}
} );