Skip to content

Shift Key Scroll Direction Support for Mouse Devices #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

0MUHAMMEDIRFAN
Copy link

This pull request introduces a small improvement to the development server configuration and enhances the pan-and-zoom utility for better user interaction. Below are the key changes:

Development Server Configuration:

  • Updated the dev script in frontend/package.json to include the --host flag, allowing the development server to be accessed from external devices.

Pan-and-Zoom Utility Enhancements:

  • Modified the setPanAndZoom function in frontend/src/utils/panAndZoom.ts to enable horizontal panning when the Shift key is pressed, improving navigation capabilities.

  • Implemented support for detecting Shift key presses during scroll events. When the Shift key is held, the scroll direction is now reversed to provide a more intuitive horizontal-to-vertical scroll behavior—especially for devices with limited axis support.

  • Previously, this was not an issue on laptops with touchpads, which support multi-directional scrolling. However, certain mouse devices only support horizontal (X-axis) scrolling. In those cases, holding the Shift key now triggers vertical (Y-axis) scrolling instead.

  • This update ensures consistent scrolling behavior across both laptops and external mouse devices.

@0MUHAMMEDIRFAN
Copy link
Author

0MUHAMMEDIRFAN commented May 8, 2025

created a new pull request with same fix and new option
#64

@0MUHAMMEDIRFAN
Copy link
Author

0MUHAMMEDIRFAN commented Jun 2, 2025

Other PR (#64) closed and looking to merge this changes

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