Thumbnail rotation glitches if clicked and dragged over

Usually when you hover over the thumbnail of an object and move side to side it rotates the object and when you leave hover it stops rotating. However when you click and drag out of hover the thumbnail still acts like you are hovering over it and will rotate the model even when not over it. If you do these to multiple thumbnails they all rotate without the need to hover over them.