Ben Nadel explores the Element.getBoundingClientRect() method on the Document Object Model (DOM) API. And, demonstrates how it can be used to translate viewport-relative event coordinates into an Element-local position using some simple math.
Blog Post: www.bennadel.c...
15 янв 2019