refactor handleWheel