This is happening because Chrome is attempting to select the hovered-over rect
element on drag. To fix this, simply prevent the rect
element from being selected by setting the user-select
CSS property to none
(this is vendor prefixed and will not work on IE9 or lower):
.rect {
position: absolute;
border: 2px solid rgba(199, 25, 9, 0.64);
-webkit-user-select: none; /* Chrome, Safari, Opera */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none;
}