Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jun 2010
    Posts
    63
    Vote Rating
    0
    orangechicken is on a distinguished road

      0  

    Default [FIXED] Why does Carousel have touchend and scrollend handlers for its scroller?

    [FIXED] Why does Carousel have touchend and scrollend handlers for its scroller?


    The scrollend handler uses the Carousel's next() and previous(), but the touchend handler just adds or subtracts the width and calls scrollTo directly. Addtionally, the touchend handler has a magic number for a drag threshold -- one that I would like to adjust, actually, because currently just about *any* drag movement (3 pixels, it seems by the magic number) results in a rotation of the carousel. This leads leads to accidental rotation. Couldn't the touchend handler be dropped?

    Anyways: The best example is swiping through pages in the iPhone home screen. Drag a page of apps across the screen (past halfway) and then ever-so-slightly flick back towards your starting point and it returns to where you began. It feels very natural.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    8
    TommyMaintz will become famous soon enough

      0  

    Default


    There was a very specific reason for this. However because of the complete overhaul and refactor of the scroller, we were able to clean up the Carousel drastically. The code is much cleaner, smaller and easier to understand. Besides that it now also supports direction vertical on the Carousel.

    This will be in the next release (due within an hour).

  3. #3
    Ext User
    Join Date
    Jun 2010
    Posts
    63
    Vote Rating
    0
    orangechicken is on a distinguished road

      0  

    Default


    Carousel now seems broken with v0.91.

    The indicator shows that it's switching panes, but the content just snaps back to the first pane! Ideas?

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    8
    TommyMaintz will become famous soon enough

      0  

    Default


    You are right. Something must have gone wrong in the build process. We will make sure this is fixed asap and put up a new build within the hour.

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    8
    TommyMaintz will become famous soon enough

      0  

    Default


    Nevermind. For me it turned out to be a caching issue. Have you tried to clear your cache and refresh?

    If it still doesnt work, could you tell me what OS and device you are running it on?

  6. #6
    Ext User
    Join Date
    Jun 2010
    Posts
    63
    Vote Rating
    0
    orangechicken is on a distinguished road

      0  

    Default


    My replies to this thread have been lost a couple times today: Mine was a false alarm. I just hadn't copied the new CSS over from the release.

    One related item: Can the delta for switching panes become configurable? It's currently hardcoded to 3 pixels. I'd like it to be 50% of width. (Additionally, there ought to be different behavior for dragging and releasing -- handled by the current onTouchEnd -- and "flicking". The model is the iPhone springboard: A quick flick from anywhere switches pages as does touch-dragging the page past the midpoint and releasing. But they *are* separate gestures.

  7. #7
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    8
    TommyMaintz will become famous soon enough

      0  

    Default


    Good to hear it wasnt a problem in our build.

    I originally had the behavior you were describing where you drag, release and if its over the midpoint it switches cards. Then the iPad came out and I modeled our carousel behavior according to its springboard implementation. I agree it would be nice to have this be configurable and support both.

    Could you add a feature request in our feature request forum describing this? Just mentioning "iPhone springboard card switching behavior for carousel" will be enough for me to understand what you want. Then we can assign it a ticket number and I can make sure this gets done.

    P.S. In the meantime dont be afraid to open to source code for Ext.Carousel. It's rather simple (especially in the latest release) and it shouldn't be too hard to implement this. You can use Ext.override(Ext.Carousel, {...your overrides here...}); to change and add functionality to the Carousel. Also, if you go down this road and you get it to work, could you please share it with us?

Similar Threads

  1. [OPEN] [FIXED-110] Carousel indicator breaks down after changing carousel content.
    By Mphasize in forum Sencha Touch 1.x: Bugs
    Replies: 6
    Last Post: 1 Jul 2010, 11:41 AM
  2. [FIXED-104] Carousel.add/dolayout doesn't update scroller bounds
    By Iumentum in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 28 Jun 2010, 1:57 PM
  3. 0.82 scrollend fires after touchend
    By watrboy00 in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 8 Jun 2010, 11:28 PM
  4. [FIXED][3.0.0 Core] Ext.ux.Carousel
    By steffenk in forum Ext 3.x: Bugs
    Replies: 4
    Last Post: 4 Aug 2009, 12:04 PM
  5. [FIXED][3.0RC2] Tab scroller menu: issue in IE
    By Luc in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 8 Jun 2009, 12:15 PM

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