reactScrollbar icon indicating copy to clipboard operation
reactScrollbar copied to clipboard

Performance when scrolling

Open artsx opened this issue 8 years ago • 6 comments

Hello,

I installed your module and all I can do what I want, the only problem is that when I scroll is jerky, I have not a linear scroll as in the demo.

I have this error appears: Handling of 'wheel' input event was delayed for 110 ms due to main thread being busy. Consider marking event handler as 'passive' to make the page more responive.

There is there a solution?

Best regards,

artsx avatar Oct 05 '16 09:10 artsx

Hi @artsx, same on my side, the plugin does everything that I need but I can't use it because it's not smooth at all, even laggy when I scroll. It's maybe because of the content, I don't really know.

DonovanCharpin avatar Dec 13 '16 19:12 DonovanCharpin

Hi @artsx @DonovanCharpin :) Can you try to install react-scrollbar from this github branch: https://github.com/FranzPoize/reactScrollbar? There is a fix that could fix performance issues so I would like to know if it works on real example.

souhe avatar Dec 14 '16 22:12 souhe

I'm experiencing this performance issue as well, @artsx @DonovanCharpin were either of you able to get this to work? I'm unable to install from the other branch.

ryanmcclure4 avatar Jan 21 '17 19:01 ryanmcclure4

Hi @souhe, I'm not able to test it now, I'll test it later and will tell you :)

DonovanCharpin avatar Jan 21 '17 23:01 DonovanCharpin

@souhe tried reactScrollbar from this branch and now my console is full of warning.js:35 Warning: This synthetic event is reused for performance reasons. If you're seeing this, you're accessing the method stopPropagationon a released/nullified synthetic event. This is a no-op function. If you must keep the original synthetic event around, use event.persist(). See https://fb.me/react-event-pooling for more information. printWarning @ warning.js:35 warning @ warning.js:59 warn @ SyntheticEvent.js:263 get @ SyntheticEvent.js:257 (anonymous) @ ScrollArea.jsx:267 Promise resolved (async) handleWheel @ ScrollArea.jsx:262 ReactErrorUtils.invokeGuardedCallback @ ReactErrorUtils.js:69 executeDispatch @ EventPluginUtils.js:85 executeDispatchesInOrder @ EventPluginUtils.js:108 executeDispatchesAndRelease @ EventPluginHub.js:43 executeDispatchesAndReleaseTopLevel @ EventPluginHub.js:54 forEachAccumulated @ forEachAccumulated.js:24 processEventQueue @ EventPluginHub.js:254 runEventQueueInBatch @ ReactEventEmitterMixin.js:17 handleTopLevel @ ReactEventEmitterMixin.js:27 handleTopLevelImpl @ ReactEventListener.js:72 perform @ Transaction.js:143 batchedUpdates @ ReactDefaultBatchingStrategy.js:62 batchedUpdates @ ReactUpdates.js:97 dispatchEvent @ ReactEventListener.js:147

can we fight this jerky behavior somehow?

kbytin avatar Sep 05 '17 00:09 kbytin

Every scroll (even for 1px) cause re-render of all children components. I'm trying to use reactScrollbar for large table >200 rows with 12 columns in each (each column - separate react-component) and It gives me a lot of performance issues :(

pavlokitdev avatar Jan 25 '18 11:01 pavlokitdev