-
Notifications
You must be signed in to change notification settings - Fork 166
Incorrect Zoom Level Applied When Dragging #2174
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd put the code inside the controlListener
, just like the other 2 handlers (SWT.Dispose
and SWT.DragDetect
) and I would also check for if (!DragSource.this.isDisposed())
seems it seems to be a possible source of problems.
Unrelated question: Is this also necessary for Linux / Mac? I ask because I see strong similarities in the 3 versions of the class DragSource
. If you don't get to it first, I can check this when I'm home with my private laptops
fc9de49
to
68ee0a3
Compare
I agree with your suggestions and have made the required changes.
I am not sure about that and don't have mac/linux to test it. |
When dragging and dropping a file from the Package Explorer or a field/method from the Outline view, the dragged item appears at an incorrect zoom level. Thats because the zoom for DragSource was not updated on zoom change and we use that zoom in DragListener to update the size of the imageList.
68ee0a3
to
e6db926
Compare
👍
No problem. Can you please add a follow-up issue in our board so we can look into it later? I assume this is not an issue since Linux/Mac have had HiDPI support for a longer time and no one reported it. If no one gets to it before me, I can look into it when I come back from my vacation (M1 / M2). |
Sure, Here's the ticket: vi-eclipse/Eclipse-Platform#318 |
When dragging and dropping a file from the Package Explorer or a field/method from the Outline view, the dragged item appears at an incorrect zoom level. Thats because the zoom for DragSource was not updated on zoom change and we use that zoom in DragListener to update the size of the imageList.
Reproduction
Steps to reproduce the behavior:
Scenario 1
20250519-0925-57.1484593.mp4
Scenario 2
20250519-0927-30.9439028.mp4
Expected Behavior
The dragged item should be of the same size as it shows in the package explorer.
Necessary configuration:
Use these arguments before starting the runtime workspace: