function getAbsoluteLeft (elem) {
  const rect = elem.getBoundingClientRect()
  return rect.left + window.pageXOffset || document.scrollLeft || 0
}
Retrieve the absolute left value of a DOM element
@param {Element} elem    A dom element, for example a div
@return {Number} left    The absolute left position of this element
                         in the browser page.