Cleanup of QuickView handleMouseMove

This one is for #6538 @jasonsanjose.
Unit tests still passing fine, everything seems to work.

Please notify me in case there are some more improvements that can be done.