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

Mouse cursor not updated correctly when selecting nodes by dragging on zoomed out node graph #6556

Closed
2 tasks
xvcgreg opened this issue May 4, 2023 · 14 comments
Assignees
Labels
--bug Type: bug p-highest Should be completed ASAP

Comments

@xvcgreg
Copy link

xvcgreg commented May 4, 2023

Discord username

No response

What type of issue is this?

Intermittent – Occurring irregularly

Is this issue blocking you from using Enso?

  • Yes, I can't use Enso because of this issue.

Is this a regression?

  • Yes, previous version of Enso did not have this issue.

What issue are you facing?

When trying to select nodes while having zoomed out graph for better view, cursor position was not calculated properly with the scale. All mouse movements were proportionally scaled up but the cursor position was in a wrong place - like it was scaled down.

2305041513_shareX.mp4

(errors you see to the right are from different bug - were there before this behavior occurred)

Expected behaviour

When zoomed out mouse cursor follows the real mouse position.

How we can reproduce it?

zoom out
select nodes by dragging

Screenshots or screencasts

No response

Enso Version

2023.5.3 nightly

Browser or standalone distribution

Standalone distribution

Browser Version or standalone distribution

standalone

Operating System

Windows

Operating System Version

Win11pro 22H2 22621.1555

Hardware you are using

12th Gen Intel(R) Core(TM) i9-12900HK / RTX3060 Laptop / Nvidia Drivers 531.68

@wdanilo
Copy link
Member

wdanilo commented May 4, 2023

This is the same issue as this one: #6549

@wdanilo wdanilo closed this as completed May 4, 2023
@github-project-automation github-project-automation bot moved this from ❓New to 🟢 Accepted in Issues Board May 4, 2023
@farmaazon farmaazon added the s-duplicate Status: a duplicate issue label May 8, 2023
@farmaazon
Copy link
Contributor

@wdanilo remember to add proper label in such cases

@wdanilo
Copy link
Member

wdanilo commented May 8, 2023

@farmaazon right, thanks!

@xvcgreg I confused this issue with another one, sorry. Reopening.

@MichaelMauderer When you were recently working on selections, did you test them with camera movement? #6487

@wdanilo wdanilo reopened this May 8, 2023
@github-project-automation github-project-automation bot moved this from 🟢 Accepted to ❓New in Issues Board May 8, 2023
@vitvakatu vitvakatu removed the s-duplicate Status: a duplicate issue label May 8, 2023
@vitvakatu vitvakatu moved this from ❓New to 📤 Backlog in Issues Board May 8, 2023
@MichaelMauderer
Copy link
Contributor

@MichaelMauderer When you were recently working on selections, did you test them with camera movement? #6487

I think I panned, but don't quite remember about zooming out. The issue was specified about the bounding box (as is the fix, which only changes the bbox computation), so that seemed less relevant.

@vitvakatu vitvakatu added the p-highest Should be completed ASAP label May 8, 2023
@farmaazon farmaazon added this to the Design Partners milestone May 10, 2023
@farmaazon
Copy link
Contributor

I cannot reproduce it on develop. @xvcgreg Can you reproduce it on the newest nightly?

@xvcgreg
Copy link
Author

xvcgreg commented May 10, 2023

@farmaazon newest nightly is unfortunately unusable for me on this project anymore. I reproduced it several times on Monday with the freshest Nightly from the weekend.

@farmaazon
Copy link
Contributor

@xvcgreg Tried it, still without luck. I will check if it reproduces on Windows. In the meantime, could you post here the project where you reproduce the issue?

@vitvakatu vitvakatu moved this from 📤 Backlog to 🔧 Implementation in Issues Board May 10, 2023
@xvcgreg
Copy link
Author

xvcgreg commented May 10, 2023

@farmaazon sure, here it is:
Unnamed_5.zip

but last week it was on much earlier stage. You can probably remove the first 2 sections of that setup.

@farmaazon
Copy link
Contributor

Checked Windows, 2023.2.1-nightly.2023.5.6 package, and the uploaded project, and still could not reproduce it.

Perhaps the cause is somewhat related to the fact, that on video we constantly see (+) icon.

@enso-bot
Copy link

enso-bot bot commented May 12, 2023

Adam Obuchowicz reports a new STANDUP for yesterday (2023-05-11):

Progress: Failed to reproduce the exact scenario. Discovered another issue which seems to be related: sometimes we get spurious mouse events. It should be finished by 2023-05-15.

Next Day: Next day I will be working on the same task. Debug the thing deeper: why do we receive additional mouse down/up events?

@farmaazon
Copy link
Contributor

Reading the code, I have the following observations:
The main issue might be not the zoom or some cursor offset, but the fact, that the cursor has wrong style.
While selecting, the cursor style should be a box of appropriate size. But in the video, I see the cursor stuck with + sign style. As the cursor position is in the middle of the selection box, thence the impression of the offset.

However, I still cannot reproduce the styling-cursor problem.

@sylwiabr
Copy link
Member

styling cursor is the issue that appears randomly pretty often (multiple times per day) when testing the product

@farmaazon farmaazon moved this from 🔧 Implementation to 📤 Backlog in Issues Board May 15, 2023
@farmaazon farmaazon moved this from 📤 Backlog to ❓New in Issues Board May 15, 2023
@farmaazon
Copy link
Contributor

I did the yesterday bookclub without spotting the issue with cursor. I suspect #6540 could fix that. @sylwiabr have you seen the issue recently?

@sylwiabr
Copy link
Member

Didin't observe it today/yesterday

@github-project-automation github-project-automation bot moved this from ❓New to 🟢 Accepted in Issues Board May 19, 2023
@farmaazon farmaazon moved this from 🟢 Accepted to 🗄️ Archived in Issues Board May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--bug Type: bug p-highest Should be completed ASAP
Projects
Archived in project
Development

No branches or pull requests

7 participants