1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    33
    Answers
    3
    Vote Rating
    2
    deliriousrhino is on a distinguished road

      0  

    Default Unanswered: Make a component invisible to touch events

    Unanswered: Make a component invisible to touch events


    I am placing a logo over the top of a carousel and I would like the logo to appear to be invisible to the touch events. So when you swipe over the logo the carousel receives the touch events.

    I have the items set up like this
    items: [{
    xtype: 'component',
    cls:'logo',
    height:130,
    width:130,
    top:30,
    left:15
    },
    {
    xtype: 'carousel',
    layout: 'fit',


    height: 200,
    items: [{
    xtype: 'appImage',
    height: 200,
    imagePath: 'resources/images/example-image2.jpg'
    }, {
    xtype: 'appImage',
    height: 200,
    imagePath: 'resources/images/example-image2.jpg'
    }, {
    xtype: 'appImage',
    height: 200,
    imagePath: 'resources/images/example-image2.jpg'
    }]
    }

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,141
    Answers
    131
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    So you want the logo to overlay the content on the carousel? Sort of like a watermark or something? You may be able to disable it or change the z-index. I think if the logo is above (higher z-index) the carousel then the carousel probably won't respond to the DOM swipe events in the area of the logo, because the carousel is below the logo (lower z-index).

    This is a longshot, but you can try listening for the DOM swipe event on the logo. When that event fires, stop the event, and you could try switching the target element from the logo to the carousel then continue the event.

Thread Participants: 1

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