Skip to content

Used absolute coordinates on screen for context menu - #877

Merged
Kwash67 merged 7 commits into
mainfrom
876-context-menu-does-not-appear-over-waypoint
Nov 28, 2025
Merged

Used absolute coordinates on screen for context menu#877
Kwash67 merged 7 commits into
mainfrom
876-context-menu-does-not-appear-over-waypoint

Conversation

@Kwash67

@Kwash67 Kwash67 commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@Kwash67
Kwash67 requested review from a team and Copilot November 28, 2025 00:01
@Kwash67 Kwash67 linked an issue Nov 28, 2025 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the context menu positioning in the MarkerPin component to use absolute screen coordinates (clientX/clientY) instead of layer-relative coordinates (layerX/layerY).

Key Changes

  • Changed context menu position calculation from e.nativeEvent.layerX/layerY to e.clientX/clientY in the MarkerPin component's context menu handler

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gcs/src/components/mapComponents/markerPin.jsx Outdated
@1Blademaster

Copy link
Copy Markdown
Member

Still bugged for me
image

Kwash67 and others added 2 commits November 28, 2025 11:12
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gcs/src/helpers/pointer.js
Comment thread gcs/src/helpers/pointer.js
Comment thread gcs/src/components/mapComponents/markerPin.jsx

@1Blademaster 1Blademaster left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

@Kwash67
Kwash67 merged commit 25dc3c4 into main Nov 28, 2025
6 checks passed
@Kwash67
Kwash67 deleted the 876-context-menu-does-not-appear-over-waypoint branch November 28, 2025 19:52
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.

Context menu does not appear over waypoint

3 participants