Example #1
0
  el.onmousemove = function (e) {
    e = e || window.event;

    if (!self._enterable) {
      // Try trigger zrender event to avoid mouse
      // in and out shape too frequently
      var handler = zr.handler;
      eventUtil.normalizeEvent(container, e, true);
      handler.dispatch('mousemove', e);
    }
  };
Example #2
0
 el.onmousemove = function (e) {
     e = e || window.event;
     if (!self._enterable) {
         // `pointer-events: none` is set to tooltip content div
         // if `enterable` is set as `false`, and `el.onmousemove`
         // can not be triggered. But in browser that do not
         // support `pointer-events`, we need to do this:
         // Try trigger zrender event to avoid mouse
         // in and out shape too frequently
         var handler = zr.handler;
         eventUtil.normalizeEvent(container, e, true);
         handler.dispatch('mousemove', e);
     }
 };