Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for clickHandler (0.19 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/html/common.js

    // Make svg pannable and zoomable.
    // Call clickHandler(t) if a click event is caught by the pan event handlers.
    function initPanAndZoom(svg, clickHandler) {
      'use strict';
    
      // Current mouse/touch handling mode
      const IDLE = 0;
      const MOUSEPAN = 1;
      const TOUCHPAN = 2;
      const TOUCHZOOM = 3;
      let mode = IDLE;
    
      // State needed to implement zooming.
      let currentScale = 1.0;
      const initWidth = svg.viewBox.baseVal.width;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 20K bytes
    - Viewed (0)
Back to top