(e)
| 109 | } |
| 110 | |
| 111 | function handleScanStart(e) { |
| 112 | if (e.button != 0) return; // Do not catch right-clicks etc. |
| 113 | setMode(MOUSEPAN); |
| 114 | panStart(e.clientX, e.clientY); |
| 115 | e.preventDefault(); |
| 116 | svg.addEventListener('mousemove', handleScanMove); |
| 117 | } |
| 118 | |
| 119 | function handleScanMove(e) { |
| 120 | if (e.buttons == 0) { |