Re-added scrollbar offset check for scrollpane_custom.js