Skip to content

Simulator wheel scroll leak bugfix (March 10, 2026)

Symptom

When users use the mouse wheel over the map preview area to zoom the map, the whole docs page scrolls at the same time.

Reproducible steps

  1. Open /simulator/.
  2. Move cursor over the map canvas area.
  3. Scroll mouse wheel.
  4. Observe map zoom and page scroll happening together.

Root cause

Wheel events in the map container did not prevent browser default page scroll. The map interaction consumed wheel input for zoom, but the document scroll behavior was still active.

Patch summary

  • Added wheel handler on map container to call preventDefault().
  • Added overscroll-behavior: contain to the map container.
  • Moved parsed map result panel to the right-side data panel to improve visual hierarchy.

Risk assessment

  • Low risk and isolated to simulator docs page UI.
  • Does not change SDK runtime logic.

Regression checklist

  • [ ] Wheel zoom over map no longer scrolls the whole page.
  • [ ] Page can still scroll normally when cursor is outside map area.
  • [ ] Parsed map summary and tree are still available after rendering.

最后更新于: