1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    12
    Vote Rating
    0
    ganesh239 is on a distinguished road

      0  

    Default right click context menu on a sprite element

    right click context menu on a sprite element


    On a sprite element, I am NOT able to capture the right click mouse event.
    I am able to capture the click, mouseover, mouseout events.

    I tried catching the mouse down event and checking if e.button = '2', but e.button returns undefined.
    What am I missing ?

    Code:
    var sprite = new Ext.draw.Sprite({
                        id: nodeId,
                        type: 'image',
                        src:  imgUrl,
                        width: 50,
                        height: 50,
                        x: xPos,
                        y: yPos,
                        fill: '#0f0',
    
    
                        //draggable: true,
                        listeners: {
                            click: function(e) {
                            },
                            rightclick: function(e) {
    
    
                            },
                             contextmenu: function(e) {
    
    
                            },
                            mousedown: function(e) {
                                    e.button;
                            }
     }
    
    
                   });

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    12
    Vote Rating
    0
    ganesh239 is on a distinguished road

      0  

    Default


    Pls help on this.

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar