From 38a6189c20ac6452a968cdc5d41acffcdb1fd1a3 Mon Sep 17 00:00:00 2001 From: Mark Salsbery <> Date: Tue, 16 Mar 2021 11:37:32 -0700 Subject: [PATCH] code cleanup --- src/referencestrip.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/referencestrip.js b/src/referencestrip.js index 00b62a47..738a55ab 100644 --- a/src/referencestrip.js +++ b/src/referencestrip.js @@ -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; } } } );