Fix for #5426 (Quick View popup closes & reopens when moving mouse rightward)

This fixes the quick view issue #5426.