Results 1 to 2 of 2

Thread: Keymap on mouse scrolling

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Location
    Russia
    Posts
    1
    Vote Rating
    0
      0  

    Default Keymap on mouse scrolling

    Hi all! Can you help me?
    I wanna do some event on mouse scrolling instead button "+"
    Here is my code:
    Code:
    var map_inc_s = new Ext.KeyMap(document,{
            key: 187,
            fn: function(){
                if (!Button_image_increase_s.disabled){
                    Ext.getCmp("Button_image_increase_s").handler.call(Ext.getCmp("Button_image_increase_s").scope);
                }
            }
        });
    Could you give me some advice to achieve it?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    Listen to the mousewheel event:

    Code:
    cmp.mon(cmp.el, 'mousewheel', someFunc, cmp);
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •