(page)
| 306 | * genau 1. Siehe Kopf. |
| 307 | */ |
| 308 | const nudge = (page) => |
| 309 | page.evaluate(() => { |
| 310 | const canvas = document.querySelector('[data-testid="atlas-galaxy-scene"] canvas'); |
| 311 | if (canvas === null) { |
| 312 | return false; |
| 313 | } |
| 314 | canvas.dispatchEvent(new WheelEvent('wheel', { deltaY: 0, bubbles: true, cancelable: true })); |
| 315 | return true; |
| 316 | }); |
| 317 | |
| 318 | /** Aus der Szene herauszoomen, wie ein Leser es tut, um alles zu sehen. */ |
| 319 | const zoomOut = (page, notches) => |