dhairyagothi / StationGuide

Station Guide - your platform guide
https://stationguide.onrender.com/
MIT License
42 stars 118 forks source link

Update index.html for issue in cursor follower #543

Open AaryaShrivaastava opened 6 days ago

AaryaShrivaastava commented 6 days ago

Pull Request Template for GSoC 2024

Related Issue #474

[Please list any related issue numbers that this pull request resolves. If none, state "None"]

closes:

Description of Changes

This PR fixes an issue where the custom cursor follower element would misalign with the user's cursor when scrolling. The update adds the scroll offset to the coords.y position, ensuring that the cursor follower remains aligned with the mouse cursor even after scrolling.

Type of Pull Request

Screenshots / Demo (if applicable)

[Include any screenshots, GIFs, or videos that demonstrate the change or feature, if available.]

Checklist for Contributor

use'X' in [ ] to check it .

Additional Information

This fix modifies the mousemove event handler to account for the page's vertical scroll offset, preventing alignment issues between the custom cursor follower and the mouse position after scrolling. This solution minimally impacts the original code structure.

The issue that I was facing and that I have tried to fix in this PR :

https://github.com/user-attachments/assets/483a0859-9ccf-4abe-9442-c039b189be01

Contribution Guidelines Reminder

Thank you for contributing to our project! Please ensure you follow the guidelines below:

Contribution Levels

  1. Task Categories:

    • Basic Tasks: Primarily focused on small changes like minor bug fixes, documentation improvements, and unit testing. Labeled as Easy.
    • Intermediate Tasks: Moderate-level tasks that involve enhancing existing features, code refactoring, or performance improvements. Labeled as Medium.
    • Advanced Tasks: Complex tasks like building new features, significant refactoring, or critical bug fixes. Labeled as Hard.
  2. Acknowledging Effort:

    • Exceptional contributions will be recognized with a higher contribution level if substantial effort and innovation are demonstrated.

Review Process

We appreciate your time and effort in improving this project and look forward to your valuable contributions!

vercel[bot] commented 6 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
station-guide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 1:25pm
station-guide-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 1:25pm
github-actions[bot] commented 6 days ago

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our [CONTRIBUTING.md](). If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊