0

I'm building a simple drag and drop application. However, when I drop the element on a droppable it adjusts itself by a pixel either top, left or sometimes both.

Looking at the console. when I drag the element its top, left position shows as (if I drag to top left of droppable): top:0.5px; left:0.71875px

So I get that the slight adjustment as I drop is the browser rounding these coordinates to the nearest int. But surely these values shouldn't be floats to begin with?

user3065931
  • 531
  • 7
  • 20

0 Answers0