Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Groningen, Netherlands
    Posts
    55
    Answers
    1
    Vote Rating
    0
    hermanvandermaas is an unknown quantity at this point

      0  

    Default Answered: Picker determine animation

    Answered: Picker determine animation


    I need to change an item in one of the slots in the Picker component. When I do so while the slot is still animating, I get an error: "Uncaught TypeError: Cannot read property 'style' of undefined" which is obviously caused by changing an element which is currently being animated.

    Is there a way to determine / listen to an event that indicates whether the slots are currently moving / animating?

    Edit:
    Listening to the 'pick' event indicates the end of the animation but when there is currently no selection / animation of the slot, I listen to the pick event forever and nothing happens.
    So I need to determine whether there is any selection / animation going on in the slot.

  2. I found that a picker slot has a scroller instance, on which you can listen to the "scroll" event to check if it is currently scrolling and if so, listen for the "scrollend" event to wait for the animation to complete:

    Code:
    var firstslot = pickerinstance.query('pickerslot')[0];
    
    firstslot.getScrollable().getScroller().on({
        scope: this,
        scroll: function() {
            console.log('scroll');
        },
        scrollend: function() {
            console.log('scrollend');
        }
    });

  3. #2
    Sencha User
    Join Date
    Oct 2011
    Location
    Groningen, Netherlands
    Posts
    55
    Answers
    1
    Vote Rating
    0
    hermanvandermaas is an unknown quantity at this point

      0  

    Default


    I found that a picker slot has a scroller instance, on which you can listen to the "scroll" event to check if it is currently scrolling and if so, listen for the "scrollend" event to wait for the animation to complete:

    Code:
    var firstslot = pickerinstance.query('pickerslot')[0];
    
    firstslot.getScrollable().getScroller().on({
        scope: this,
        scroll: function() {
            console.log('scroll');
        },
        scrollend: function() {
            console.log('scrollend');
        }
    });