angular-vs-repeat icon indicating copy to clipboard operation
angular-vs-repeat copied to clipboard

IE&Safari + Performance: When scrolling, there is white background for a short time

Open MaestroJurko opened this issue 9 years ago • 17 comments

When scrolling in Safari, there is a performance issue. When scrolling, depending on direction, there is a white background for a short time.

You can see it in the demo page.

MaestroJurko avatar May 29 '15 09:05 MaestroJurko

This can be overcome by adjusting the vs-excess properly

kamilkp avatar May 29 '15 09:05 kamilkp

vs-excess is set to 200, and still happens. Sometimes the whole list is not visible.

MaestroJurko avatar May 29 '15 11:05 MaestroJurko

Can you create a jsfiddle?

kamilkp avatar May 29 '15 11:05 kamilkp

http://kamilkp.github.io/angular-vs-repeat/#?tab=1

scroll fast, on you will see a white background, it is not that obvious here, but if you have a higher view, it is much easier to see.

MaestroJurko avatar May 29 '15 11:05 MaestroJurko

http://jsbin.com/mobipezehi/1/edit?html,css,js,output - in this example you will see, when scrolling, white flashes

Could you please fix this issue, I know it is not as important, but it gives bad user experience.

MaestroJurko avatar May 29 '15 13:05 MaestroJurko

Any update on this issue?

MaestroJurko avatar Jun 01 '15 07:06 MaestroJurko

using window.requestAnimationFrame speeds up scrolling a bit, but it is still not good in safari and IE.

maybe take a look at this lib, if you could think of how to fix the issue.

http://gdepourtales.github.io/ng-cells/

MaestroJurko avatar Jun 01 '15 13:06 MaestroJurko

Join to mato75, Also have this issue,

div class="items-list" id="tableSearchResults" vs-repeat="85" vs-excess="10" div class="request-row" ng-repeat="item in itemsList" ng-click="showItemDetails(request)"

testing on Android device, render speed on medium-high speed scrolling is slow. on desktop browser works good without this issue

ghost avatar Jun 02 '15 12:06 ghost

Any update?

MaestroJurko avatar Jun 09 '15 07:06 MaestroJurko

I am having the same experience. Unlike what it has on the demo page, which has a delay when you drag the scrollbar dragger with 1000 items, I can use the scrollbar dragger smoothly but the list flashes somehow. I am not quite sure but I guess this is because IE is slow in re-rendering the ng-repeat items (and of coz, Chrome is always better than IE regarding perf)?

SuperCoolSEBoy avatar Aug 12 '15 16:08 SuperCoolSEBoy

ng-cells has amazing scroll performance. How do we get vs-repeat to be that responsive?

darrinholst avatar Sep 28 '15 14:09 darrinholst

The degraded scrolling performance that I was seeing was due to adding filter and orderBy filters. That brought the digest cycle up to 150ms with just orderBy and 500ms with both activated. Need to figure out how to add sorting and filtering without killing scroll performance if anyone has any suggestions.

darrinholst avatar Sep 28 '15 15:09 darrinholst

Made video example of my problem. https://youtu.be/aG6W5mlMqxM

Anyone has an idea how to fix this?

ghost avatar Oct 08 '15 08:10 ghost

+1 Here, experience this on WP8.1 aswell as on android.

Is there an update to this problem?

graphefruit avatar Dec 04 '15 14:12 graphefruit

@darrinholst @SuperCoolSEBoy @dudesweet100 Guys can please let me know how you have solved this problem.

samk-ayyagari avatar Mar 23 '17 14:03 samk-ayyagari

I don't think we ever totally eliminated the white flash (I'm not on the project anymore), but it is very important to do all your formatting/filtering/sorting of data up front in the controller. You want to get that digest cycle time as small as possible. It's going to be very hard to match the scrolling performance of a native table so you have take some tradeoffs unfortunately.

darrinholst avatar Mar 23 '17 14:03 darrinholst

+1

vTodorov avatar Mar 15 '18 12:03 vTodorov