How to use jquery-mousewheel - 1 common examples

To help you get started, we’ve selected a few jquery-mousewheel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Leeft / Star-Citizen-WebGL-Map / src / scmap / ui.js View on Github external
StarSystem.getById( $(this).data('system') )
        .setHangarState( this.checked )
        .refreshIcons();
      settings.save( 'systems' );
    });

    $('#sc-map-interface').on( 'change', '.user-system-avoid', function() {
      StarSystem.getById( $(this).data('system') )
        .setToBeAvoidedState( this.checked )
        .refreshIcons();
      settings.save( 'systems' );
      map.route().rebuildCurrentRoute();
    });

    // Init the mousewheel plugin ("import" alone doesn't cut it)
    jqueryMousewheel( $ );

    /* jScrollPane */
    $('#sc-map-interface').jScrollPane({
      showArrows: false,
      horizontalGutter: 6,
      mouseWheelSpeed: 4,
    });

    this.oldWidth = 0;
    this.oldHeight = 0;

    renderer.resize();

    resizeListener().listenTo( $('#sc-map-interface .sc-map-ui-padding')[ 0 ], element => {
      const width = $(element).width();
      const height = $(element).height();

jquery-mousewheel

A jQuery plugin that adds cross-browser mouse wheel support.

Unrecognized
Latest version published 9 years ago

Package Health Score

71 / 100
Full package analysis

Popular jquery-mousewheel functions