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