function fireMouseEvents(from, to) {
  events.fireMouseOutEvent(from, to);
  events.fireMouseOverEvent(to, from);
  const bounds = style.getBounds(to);
  events.fireMouseMoveEvent(
      document, new Coordinate(bounds.left + 1, bounds.top + 1));
}
Helper function to fire events related to moving a mouse from one element
to another. Fires mouseout, mouseover, and mousemove event.
@param {Element} from Element the mouse is moving from.
@param {Element} to Element the mouse is moving to.