Closed dsamarin closed 13 years ago
Throttling is the best way to fix problems like these, because by tackling the source of the events, less code is run in the long run. Mouse scrolling slowness in Firefox has been fixed, without noticeably affecting scrolling in Chrome.
When testing the suit demo on Firefox, it is noticeably slower than in Google Chrome. The main slowness comes from the fact that events like scrolling/mouse moving/etc come in too fast. Instead of queuing redraws every X milliseconds (slow on all browsers), events should be queued up and deployed as a single event. For example, multiple scroll events should be combined and the wheel deltas should be added together.