Optimizations, bugfixes, mouse scroll support