Skip to content

Conversation

@lootek
Copy link

@lootek lootek commented May 5, 2016

Use scrollDebounce param from global ui-grid options.

Use scrollDebounce param from global ui-grid options.
@JLLeitschuh
Copy link
Contributor

What is the behaviour before and what is the behaviour now? How has it changed?
Can we get more details on this?

@lootek
Copy link
Author

lootek commented May 31, 2016

Before, scrollHandler was getting called on every scroll event (every pixel/few pixels).
After wrapping it with debounce util, it gets called once, just after end of scrolling. Just as it's stated in the docs for debounce:

[debounce] Takes a function, decorates it to execute only 1 time after multiple calls

This has major performance impact, noticeable especially for the case of ui-grid-viewport.js where the scrollHandler function reads scrollTop DOM property (which forces immediate page reflow).

You may be interested in Google results for javascript debounce scroll event

labrute and others added 27 commits July 4, 2016 14:22
* Add missing translations : Language French * Update fr.js
Fix paths to the files.
Fix link for project website, http://ui-grid.info/, for Font Awesome css and user newer version of Font Awesome
selectRow doesn't work when ui-grid-selection is enabled together with ui-grid-tree-view. getRow returns first div in the row which will be the node expand/collapse icon's div if tree view is enabled.
The documentation for `refresh` method (line 218) should be updated to include optional param `rowsAltered`
Added separator parameter documentation in the formatAsCsv function
WheelEvent.deltaMode is a READONLY property, as explained https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode and by the error message my browser throws. This should not be reset to zero.
…arameter (angular-ui#5404) * Fixing notify text if cellFilter takes string literal Calling getCellDisplayValue to get the correct filtered value, instead of getIntersectionValueFiltered, which did not return the correct value if the cellFIlter contained a string literal as an argument. This was the only place that function was being used, so it can be removed. It was probably carried forward from the ng-grid source, which had the same issue. * Remove getIntersectionValueFiltered This function was probably carried forward from ng-grid, and does not properly handle cellFilters with string literal arguments. It was only being used in one place, and was easily replaced with getCellDisplayValue, which does return the proper value.
Sauce keeps failing on master, this is the first attempt to fix it
This fix removes an unneeded additional function when setting column visibility. Since both functions were of the same priority level, it was possible that the visibility that was passed in would be overwritten with the default value of true under certain circumstances. There was really no need for two functions, as this default behavior can be accomplished in one.
@mportuga
Copy link
Member

@lootek Can you resolve merge conflicts?

@JLLeitschuh
Copy link
Contributor

Can you please rebase your changes instead of merging up?

@mportuga
Copy link
Member

Closing due to inactivity.

@mportuga mportuga closed this Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment