- Added some checks in method Viewport::mouseMoveEvent().