whole_func_string: function(event, g, context) {
      if (context.cancelNextDblclick) {
        context.cancelNextDblclick = false;
        return;
      }
  
      // Give plugins a chance to grab this event.
      var e = {
        canvasx: context.dragEndX,
        canvasy: context.dragEndY,
        cancelable: true,
      };
      if (g.cascadeEvents_('dblclick', e)) {
        return;
      }
  
      if (event.altKey || event.shiftKey) {
        return;
      }
      g.resetZoom();
    }
func_code_string: function(event, g, context) {
      if (context.cancelNextDblclick) {
        context.cancelNextDblclick = false;
        return;
      }
  
      // Give plugins a chance to grab this event.
      var e = {
        canvasx: context.dragEndX,
        canvasy: context.dragEndY,
        cancelable: true,
      };
      if (g.cascadeEvents_('dblclick', e)) {
        return;
      }
  
      if (event.altKey || event.shiftKey) {
        return;
      }
      g.resetZoom();
    }
func_documentation_string: Disable zooming out if panning.