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

Drag & Drop: extremly slow scrolling when target field is off-screen #7019

Open
Friendly-Banana opened this issue Jul 31, 2023 · 5 comments
Open

Comments

@Friendly-Banana
Copy link

Friendly-Banana commented Jul 31, 2023

Describe the bug

When dragging answers to fields off-screen the exercise scrolls painfully slow.

Use arrow keys to see normal/fast scrolling.
Another workaround is placing the answer into a temporary helper field, then scrolling normally, then dragging to actual target

To Reproduce

  1. Go to a Drag & Drop exercise
  2. Try dragging an item into an off-screen field

Expected behavior

Normal/ Decently fast scrolling, so off screen fields can be filled.

Screenshots

No response

Which version of Artemis are you seeing the problem on?

6.3.8

What browsers are you seeing the problem on?

Chrome, Microsoft Edge, Firefox

Additional context

See e.g. FPV exam, https://artemis.in.tum.de/courses/271, Exercise 6

Relevant log output

No response

@michael-schwarz
Copy link

If at any point an export of the exercise mentioned here would be helpful, feel free to ping someone from the FPV team and we will prepare a version that doesn't leak exam questions that can be used to reproduce.

@krusche
Copy link
Member

krusche commented Aug 12, 2023

@michael-schwarz An export and ideally a screencast of the slow scrolling would be very helpful.

@just-max
Copy link
Contributor

Here is an exercise in the regular FPV course, @Friendly-Banana can you check if you have the issue there? https://artemis.ase.in.tum.de/course-management/253/quiz-exercises/11171/edit

Here is the export of the exercise:
Drag and Drop (Artemis Issue).json.zip

And a video:

issue.mp4

In my opinion, the expected UI would be to have the background image scrollable independently of the list of drag and drop items, e.g. by putting each in its own scrollable container whose height takes up most of the user's display.

For what it's worth, I can still scroll the page just fine with the scroll wheel, but that doesn't feel natural.

@Friendly-Banana
Copy link
Author

Can confirm this issue with that exercise too.

@milljoniaer
Copy link
Contributor

#7261 improves the scroll speed on windows devices (using this). However, the drag and drop library doesn't work properly on macOS.
So I leave this issue open, since it needs further investigation.

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

No branches or pull requests

6 participants