PDA

View Full Version : Keymap on mouse scrolling



dkachan
25 Oct 2012, 1:57 AM
Hi all! Can you help me?
I wanna do some event on mouse scrolling instead button "+"
Here is my 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?

mitchellsimoens
27 Oct 2012, 1:14 AM
Listen to the mousewheel event:


cmp.mon(cmp.el, 'mousewheel', someFunc, cmp);