private static void OnSearchResultsMouseScroll(jQueryEvent e) { int?wheelDelta = (int)Script.Literal("{0}.originalEvent.wheelDelta", e); if (wheelDelta == null) { wheelDelta = (int)Script.Literal("{0}.originalEvent.wheelDeltaY", e); } if (wheelDelta == null) { wheelDelta = (int)Script.Literal("{0}.originalEvent.detail", e) * -30; } if (wheelDelta == null) { wheelDelta = (int)Script.Literal("{0}.originalEvent.delta", e) * -30; } jQueryObject target = jQuery.FromElement(e.Target); // Is this event from a results grid? jQueryObject gridContainer = target.Closest(".slick-cell"); if (gridContainer.Length > 0) { return; } jQueryObject searchResultsDiv = jQuery.Select("#searchResults"); int scrollLeft = searchResultsDiv.GetScrollLeft(); searchResultsDiv.ScrollLeft(scrollLeft -= wheelDelta.Value); e.PreventDefault(); }