reaviz/reagraph

Zoom to Cursor not working

Closed this issue · 0 comments

Describe the bug

Zoom should go to the cursor, not middle of screen.

https://github.com/reaviz/reagraph/blob/master/src/CameraControls/CameraControls.tsx#L305

Steps to Reproduce the Bug or Issue

  • Get a large graph
  • Position cursor in bottom right
  • Zoom
  • Note it doesn't zoom to cursor

Expected behavior

it zooms to cursor

Screenshots or Videos

No response

Platform

  • Reagraph Version: [e.g. 1.0.0]
  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • NodeJS version: ...

Your Example Website or App

No response

Additional context

No response