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');
        }
    });

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi