function ensureHover(event) {

    if (event.hover) {
      return;
    }

    var originalEvent = event.originalEvent;

    var gfx = self._findTargetGfx(originalEvent);

    var element = gfx && elementRegistry.get(gfx);

    if (gfx && element) {

      // 1) cancel current mousemove
      event.stopPropagation();

      // 2) emit fake hover for new target
      dragging.hover({ element: element, gfx: gfx });

      // 3) re-trigger move event
      dragging.move(originalEvent);
    }
  }
/**
   * Make sure we are god damn hovering!
   *
   * @param {Event} dragging event
   */
Make sure we are god damn hovering.
@param {Event} dragging event
Make sure we are god damn hovering . @param { Event } dragging event
function ensureHover(event) {
    if (event.hover) {
      return;
    }
    var originalEvent = event.originalEvent;
    var gfx = self._findTargetGfx(originalEvent);
    var element = gfx && elementRegistry.get(gfx);
    if (gfx && element) {
      event.stopPropagation();
      dragging.hover({ element: element, gfx: gfx });
      dragging.move(originalEvent);
    }
  }
function ensureHover ( event ) { if ( event . hover ) { return ; } var originalEvent = event . originalEvent ; var gfx = self . _findTargetGfx ( originalEvent ) ; var element = gfx && elementRegistry . get ( gfx ) ; if ( gfx && element ) { event . stopPropagation ( ) ; dragging . hover ( { element : element , gfx : gfx } ) ; dragging . move ( originalEvent ) ; } }
Make sure we are god damn hovering!
Make sure we are god damn hovering!
// 1) cancel current mousemove // 2) emit fake hover for new target // 3) re-trigger move event