Skip to content

Disable scroll zoom on charts#792

Merged
thinkingfish merged 1 commit intoiopsystems:mainfrom
thinkingfish:fix/disable-scroll-zoom
Apr 14, 2026
Merged

Disable scroll zoom on charts#792
thinkingfish merged 1 commit intoiopsystems:mainfrom
thinkingfish:fix/disable-scroll-zoom

Conversation

@thinkingfish
Copy link
Copy Markdown
Member

Summary

  • Remove the inside type dataZoom from ECharts config to stop charts from hijacking mouse wheel events
  • Page scrolling now works normally when hovering over charts
  • Drag-to-zoom (toolbox) and programmatic zoom (time range bar) are unaffected

Test plan

  • Scroll over charts — page scrolls normally, no zoom
  • Drag-to-zoom still works on charts
  • Time range bar zoom still syncs to all charts

🤖 Generated with Claude Code

The ECharts 'inside' dataZoom type intercepts mouse wheel events even
with zoomOnMouseWheel and moveOnMouseWheel disabled. Remove it entirely
so page scrolling works normally over charts. Programmatic zoom still
works via the hidden slider dataZoom, and drag-to-zoom via the toolbox.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@thinkingfish thinkingfish merged commit c5a4dc5 into iopsystems:main Apr 14, 2026
14 checks passed
@thinkingfish thinkingfish deleted the fix/disable-scroll-zoom branch April 14, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant