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

Bug: darkroom coordinates of cursor shifted when border_size >> 0 #405

Open
2 tasks done
audiomartin opened this issue Jan 15, 2025 · 4 comments
Open
2 tasks done

Comments

@audiomartin
Copy link

Code of Conduct

  • I have read this document and I accept the conditions

Search previous report

  • I have searched my issue

Computer's operating system

Windows 7, 8, 10, or 11

What GPU do you have ?

Nvidia

Ansel version

ansel-0.0.0+1055.g1f317515-win64.exe

Type of binary

Pre-built packages provided by the Ansel project (.AppImage, .EXE)

What happened?

After adding a gradient mask with ISO 12646 color assessment conditions toggled on, the black dot to rotate the gradient mask is not working to rotate the mask.

Does your problem occur with OpenCL enabled ?

Yes

Does your problem occur with OpenCL disabled ?

Yes

Previous Ansel version that use to work

ansel-0.0.0+1028.gecaf9d6f-win64.exe

Output of ansel -d all

No response

Backtrace

No response

@Jiyone
Copy link
Collaborator

Jiyone commented Jan 15, 2025

There is an mouse offset of some pixel on the right when the iso 12646 view is enabled.

@audiomartin
Copy link
Author

True, there is an offset to top left, but only for the move handle and only on some pictures. The rotate handle can not be activated with mouseover.
In some older version i noticed the offset for both handles the same.

@aurelienpierre
Copy link
Collaborator

I have been investigating that and GUI coordinates of cursor seem to have been broken for a long time, only it doesn't show when the image margins are quite small. Increase them by a lot and you get a constant shift for all shapes and color pickers. Workaround for now is to set margins to 0.

@aurelienpierre aurelienpierre changed the title Bug: Gradient mask rotation handle not working Bug: darkroom coordinates of cursor shifted when border_size >> 0 Jan 16, 2025
@audiomartin
Copy link
Author

Probably related:
In version ansel-0.0.0+1099.ge2f5d0a0-win64.exe on Win10.

  1. Good, there is no more offset grabbing the handles off a gradient mask. Rather strange, moving the mask and handles is possible, but when letting go the mouse the mask is jumping somewhere else. This is happening with or without white border.
  2. I do not know if intended, but the mouse pointer symbol is switching between a black point in a white circle, a cross (outside the image) and the (normal) mouse arrow.

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

3 participants