fix: context menu flips upward when near viewport bottom

- If click.y + 260 > window.innerHeight: position bottom instead of top
- Also clamp left to prevent right-edge overflow
- Menu now appears above the click point when there's no room below
This commit is contained in:
2026-07-27 07:46:06 +07:00
parent 993610ca37
commit f98ade5d58
2 changed files with 7 additions and 5 deletions
File diff suppressed because one or more lines are too long