Clamp the counter with Math.max(0, ...) and use <= 0 check to prevent the drag overlay from getting stuck when dragLeave fires more than dragEnter. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
Clamp the counter with Math.max(0, ...) and use <= 0 check to prevent the drag overlay from getting stuck when dragLeave fires more than dragEnter. Signed-off-by: Bryan Frimin <bryan@getprobo.com>