Forum Academy Marketplace Showcase Pricing Features

Translate Mouswheel to Horizontal Scroll

I have a section of my app that scrolls horizontally (due to custom CSS) and I’m looking to make it so that regular mousewheel scrolling translates to horizontal scrolling in that section (currently no scrolling occurs when the mousewheel is turned).

I found this code snippet and I’ve been trying to use it in a Toolbox Run Javascript action, but it’s causing an error “mouswheel is not a function”.

$(function() {
    $("#pipeline-panel").mousewheel(function(event, delta) {
        this.scrollLeft -= (delta * 30);

“pipeline-panel” is the ID of the group with horizontal scrolling.

Any ideas on how to get this to work?