mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #4826] [MERGED] fix(common): correct coordinates calculation for selection end position #4955
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4955
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/4826
Author: @anwarulislam
Created: 3/5/2025
Status: ✅ Merged
Merged: 3/13/2025
Merged by: @jamesgeorge007
Base:
next← Head:fix/selection-context-menu-position📝 Commits (1)
a3a7d17fix(common): correct coordinates calculation for selection end position📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
packages/hoppscotch-common/src/composables/codemirror.ts(+1 -1)📄 Description
Closes HFE-770
This pull request addresses a bug where the selection of text in the JSON input field does not follow the mouse cursor properly when scrolling. Users may find it difficult to find context menu because of this.
What's Changed
In the file
packages/hoppscotch-common/src/composables/codemirror.ts, we made an update to thehandleTextSelectionmethod. The change involves using the 'to' position (end position) instead of the 'from' position to correctly position the context menu at the location where the drag operation ended. This adjustment ensures that the context menu appears at the appropriate spot.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.