Added support for middle and right mouse button