ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Slow on re-rendering Grid for horizontal scrolling (Mobile)

Open BetaFold3 opened this issue 11 years ago • 3 comments

Hi,

For example: http://ui-grid.info/docs/#/tutorial/191_horizontal_scrolling

Device: iPhone 5 iOS version: 8.4

When we scroll horizontally, the column headers takes 2 seconds or even more to be in right position.

I'm not sure which part is the cause for this delay.

BetaFold3 avatar Jul 30 '15 08:07 BetaFold3

Any update on this issue? I am seeing the same behavior.

jmarcello10 avatar Jan 27 '16 20:01 jmarcello10

I am experiencing this bug on multiple Android browsers as well as the Chrome mobile view. When I package the grid up in an Ionic application and install it via .apk on either my tablet (Nexus 7 gen 2) or my phone (Nexus 5X), the problem is further accentuated.

Both the column headers (horizontal scrolling) and row header selection checkboxes (vertical scrolling) are affected by the delay. It seems only touch-scrolling produces the bug - in Chrome mobile view, if I drag the sliders themselves, the problem completely disappears.

I was able to slightly reduce the lag by disabling every feature except ui.grid.selection. I also played around with many of the configuration options, including scrollThreshold, excessColumns/Rows, and virtualization, but nothing seemed to make a difference.

I'm sure we all would really appreciate seeing some feedback on this problem - it's not comforting to see this go without reply for more than a year.

Edit: I can also verify that this bug is present on both the ui-grid homepage and in the tutorials when using Chrome (version 51.0.2704.81) for Android (version 6.0.1).

williamdwarke avatar Aug 05 '16 20:08 williamdwarke

In version 4.0.0, we have exposed a customScroller feature in the gridOptions, which allows you to pass in your own scroller function that could be used to resolve this defect. http://ui-grid.info/docs/#/tutorial/407_custom_scrolling

I have also provided an outside plugin that greatly improves scrolling on devices.

https://github.com/mportuga/ui-grid-custom-scroller

mportuga avatar Dec 14 '16 07:12 mportuga