Automattic / antiscroll

OS X Lion style cross-browser native scrolling on the web that gets out of the way.
1.07k stars 162 forks source link

Optimize scrollbar size computing #17

Closed pirxpilot closed 12 years ago

pirxpilot commented 12 years ago

If scrollbar size is 0 we were computing it every time scrollbarSize was called. It's especially wastefull on webkit browsers were scrollbar size can be set to 0 through CSS.

rauchg commented 12 years ago

null == size would be sweet :P