Added ability to release mouse with right-click