makes scrollbar work with custom scrollbar plugin, fixes #308