-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Scrolling): Don't trap scroll at 100% down
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78a4b43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove this part line 153 ?
It introduces a new bug that prevents to scroll up when the mouse is on a grid : The prevent default action is triggered even if we are not at the top of the page.
78a4b43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to @foxx9
78a4b43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a PR #2897
78a4b43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@foxx9 @kmittal Can you describe what exactly you're doing that is resulting in not being able to scroll up the page when the grid is scrolled to the top?
I can use the mousewheel to scroll up the page when the grid is scrolled to the top in Chrome, FF, and IE11.
78a4b43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can reproduce it right here : http://ui-grid.info/docs/#/tutorial/101_intro
On chrome for mac using the trackpad, if I put the mouse on the grid and try to scroll up, it doesn't work
78a4b43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@c0bra And I think the issue happens when the grid is inside a container which has a limited height, in my case I had an "overflow : scroll" on that container, so it was not about the global page scroll; maybe that's why you couldn't reproduce it in your test.
78a4b43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works when there are scrollable rows in the grid, but not when the grid has no scrollable rows (and so is both at the top and the bottom at the same time). I'm on a Mac so I'm not sure if this is specific trackpad behaviour or it would do it for all scroll wheels on that same tutorial.
78a4b43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still it does not allow me to scroll till bottom of grid,
2nd issue is when I do scrolling upwards/downwards other row seems blinking or looks like removed for while, its not giving smooth scroll.