* unified code with mousewheel