Skip to content
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

Background JS injection causing mouse coordinate issues #62

Closed
yamadashy opened this issue May 25, 2024 · 2 comments
Closed

Background JS injection causing mouse coordinate issues #62

yamadashy opened this issue May 25, 2024 · 2 comments

Comments

@yamadashy
Copy link
Owner

yamadashy commented May 25, 2024

Description

The current implementation of the extension injects JavaScript code into web pages running in the background. This has led to a problem where the mouse coordinates relative to the cells on existing pages are incorrect, resulting in a discrepancy between the actual and expected cell interactions.

Expected Behavior

When interacting with cells on a web page, the mouse coordinates should accurately correspond to the intended cells, allowing for precise cell selection and manipulation.

Proposed Solution

As a temporary workaround, we should stop injecting JavaScript code in the background. While this may not be a fundamental solution to the underlying issue, it will mitigate the mouse coordinate discrepancy and allow users to interact with cells more accurately on existing pages.

@yamadashy
Copy link
Owner Author

yamadashy commented May 25, 2024

As a temporary workaround, we should stop injecting JavaScript code in the background.
705d811

@yamadashy
Copy link
Owner Author

As a fundamental solution, we should aim to continue injecting JavaScript while implementing measures to prevent the mouse coordinate discrepancy. Leveraging window resize events and formula bar size changes, which seem to trigger a recalculation of the page layout, may provide a viable approach. By intelligently utilizing these triggers and devising a suitable hack, we may be able to reconcile the injected JavaScript with accurate mouse positioning.

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

No branches or pull requests

1 participant