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

Prompt frame positioning #2523

Open
Whao510 opened this issue Apr 29, 2024 · 4 comments
Open

Prompt frame positioning #2523

Whao510 opened this issue Apr 29, 2024 · 4 comments
Labels

Comments

@Whao510
Copy link

Whao510 commented Apr 29, 2024

A yellow prompt appears when I click on the rectangle, but I zoom in and out of the picture and move the picture, and I don't know how to make the yellow prompt follow the rectangle, can someone help me?
90

@iangilman
Copy link
Member

Is the prompt an overlay? If so, it should move with the rectangle.

@Whao510
Copy link
Author

Whao510 commented May 6, 2024

Thank you for your reply, something has happened recently, so I reply you now, prompt is my custom div, because I don't want prompt to scale with the rectangle, I just want prompt to always be next to the rectangle, no matter scaling or moving

@Whao510
Copy link
Author

Whao510 commented May 6, 2024

For example, I have multiple rectangles, I click on different rectangles, and prompt appears next to each rectangle, but as the picture scales and moves, I don't know how to keep prompt next to the rectangle, indicating that this prompt belongs to this rectangle

@msalsbery
Copy link
Member

For example, I have multiple rectangles, I click on different rectangles, and prompt appears next to each rectangle, but as the picture scales and moves, I don't know how to keep prompt next to the rectangle, indicating that this prompt belongs to this rectangle

How are you getting the rectangles to move when the image is panned/zoomed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants