You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member sebsei's Avatar
    Join Date
    May 2007
    Location
    Copenhagen, Denmark
    Posts
    69
    Vote Rating
    0
    sebsei is on a distinguished road

      0  

    Default [B2] [FIXED-EXTJSIV-671] GridPanel swallows scroll event

    [B2] [FIXED-EXTJSIV-671] GridPanel swallows scroll event


    Hi

    I have a grid on a page. The grid's scrollbar is not shown, since the records fit inside the grid. The whole page has a scrollbar, since there is lots of other stuff on it. When I scroll my page it stops as soon as the cursor is above the grid.

    It seems that the gridpanel "swallows" the scroll event, and calls EventObject.stopEvent/preventDefault at some time.

    This is very annoying, and not very user friendly. In the Ext 3.x grids this didn't happen.

    This might not be a bug, but if that's the case then it should definetely be possible to change via a config option.

    Thank you

    Sebastian

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    53
    Vote Rating
    1
    eja40 is on a distinguished road

      0  

    Default


    +1

    I agree this is annoying too and I hope that it is related to the general bug that the grid cannot detect its height correctly. But this is definitely a bug not a feature.

  3. #3
    Ext JS Premium Member Sébastien.Volle's Avatar
    Join Date
    Apr 2011
    Location
    Grenoble, France
    Posts
    70
    Vote Rating
    0
    Sébastien.Volle is on a distinguished road

      0  

    Default


    I concur. Grids without a scrollbar should not capture scroll events.
    aka Seboss

  4. #4
    Ext JS Premium Member sebsei's Avatar
    Join Date
    May 2007
    Location
    Copenhagen, Denmark
    Posts
    69
    Vote Rating
    0
    sebsei is on a distinguished road

      0  

    Default


    Quote Originally Posted by Sébastien.Volle View Post
    I concur. Grids without a scrollbar should not capture scroll events.
    Nor should grids with a scrollbar

  5. #5
    Ext JS Premium Member Sébastien.Volle's Avatar
    Join Date
    Apr 2011
    Location
    Grenoble, France
    Posts
    70
    Vote Rating
    0
    Sébastien.Volle is on a distinguished road

      0  

    Default


    Shouldn't they? Do you imply that grids should only be scrolled dragging the scrollbar or navigating the rows using the arrow keys? That goes a little too far if you ask me.
    aka Seboss

  6. #6
    Ext JS Premium Member sebsei's Avatar
    Join Date
    May 2007
    Location
    Copenhagen, Denmark
    Posts
    69
    Vote Rating
    0
    sebsei is on a distinguished road

      0  

    Default


    No, that's not what I meant.
    Of course should they be scrolled. But they shouldn't swallow the scroll event. That is, if the grid reaches the bottom of it's scrolling area, and my mouse wheel is still scrolling, then the total page should be scrolled. Right now nothing happens. And this is a different behavior than in 3.x.

  7. #7
    Ext JS Premium Member Sébastien.Volle's Avatar
    Join Date
    Apr 2011
    Location
    Grenoble, France
    Posts
    70
    Vote Rating
    0
    Sébastien.Volle is on a distinguished road

      0  

    Default


    Ok, your proposition makes perfect sense, and I agree what you describe would be ideal.
    aka Seboss

  8. #8
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,306
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    This shouldn't be a problem in the next release. This was fixed with EXTJSIV-671.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Similar Threads

  1. Replies: 1
    Last Post: 7 Apr 2011, 6:01 AM
  2. Replies: 2
    Last Post: 4 Apr 2011, 12:20 PM
  3. [FIXED-EXTJSIV-194] Grid Scroll Issues
    By James Goddard in forum Ext:Bugs
    Replies: 2
    Last Post: 1 Apr 2011, 11:05 AM
  4. Replies: 1
    Last Post: 23 Mar 2011, 9:14 AM
  5. Datagrid swallows browser's scroll event? But I don't want this!
    By allenyoung in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 17 Sep 2007, 2:53 AM

Thread Participants: 3