Skip to content

Conversation

@Satvik-Singh192
Copy link

Description

This pull request implements the graph panning feature as described in issue #6.

The user can now click and drag the left mouse button within the graphing pane to move (pan) the Cartesian plane. This is achieved by:

  1. Tracking the mouse-down state.
  2. Calculating the mouse's delta (change in position) while dragging.
  3. Applying this delta to an originOffset variable.
  4. Using this originOffset to correctly calculate the final screen position of the origin axes and the plotted function points.

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

Closes #6

Checklist

@nsh07
Copy link
Member

nsh07 commented Oct 23, 2025

Also, can you please resolve the merge conflict? Thanks.

@Satvik-Singh192
Copy link
Author

@nsh07 i modified the .gitignore and resolved the merge conflicts too

@nsh07
Copy link
Member

nsh07 commented Oct 24, 2025

Your current implementation does not seem to work with implicit relations:

image

Your code looks perfect otherwise, I can continue with merging once you fix this. Thanks in advance!

@nsh07
Copy link
Member

nsh07 commented Oct 26, 2025

Any updates?

@nsh07
Copy link
Member

nsh07 commented Oct 29, 2025

Hey, you there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Implement panning to move the graph around

2 participants