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

Overview: abort play pos dragging if cursor is relased outside the valid area #13741

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Oct 8, 2024

This is an attempt to fix #13732 = simplify aborting accidental position drag

Dragging the play position is allowed only in the valid zone:
overview +-100 px vertically and +-50 px vertically

If the cursor leaves the valid area while dragging:
show a warning cursor
remove the time ruler, restore regular play pos painting

Dragging is aborted only if the release event happens outside.

overview-drag-abort

Also includes a fix: abort play pos dragging if passthrough is enabled.

TODO

  • check if devicePixeRatio is relevant here
  • make 100% sure that the cursor is reset in all possible situations

@ronso0
Copy link
Member Author

ronso0 commented Oct 9, 2024

Btw I'd prefer the regular cursor with the usual 'Drop not allowed' icon attached, but that only works for QDrag cursors.
Turning the overview drag into a QDrag is overkill IMO (and I'm not motivated to do that). is no solution: just to get the cursor icon, the QDrag would need to handled by all other potential drop widgets. Dead end.

Besides that I'm pretty satisfied with how this works.
I think in order to get this mergable we need to discuss

  • the margin: is a threshold of 50px vertically and 100px horizontally okay? (swapped for vertical overviews)
  • the 'Drag not allowed' icon

@ronso0 ronso0 force-pushed the overview-abort-drag-leave-zone branch from da253f2 to d19c8be Compare October 9, 2024 09:38
@ronso0 ronso0 changed the title [POC] Overview: abort play pos dragging if cursor is relased outside the valid area Overview: abort play pos dragging if cursor is relased outside the valid area Oct 9, 2024
@ronso0 ronso0 force-pushed the overview-abort-drag-leave-zone branch from 70baa89 to fae9428 Compare October 9, 2024 10:06
@spotlesscoder
Copy link
Contributor

looks great :) I will test it later

@ronso0 ronso0 marked this pull request as ready for review October 9, 2024 10:55
@ronso0 ronso0 force-pushed the overview-abort-drag-leave-zone branch from fae9428 to 0be27d0 Compare October 9, 2024 11:03
@spotlesscoder
Copy link
Contributor

I struggle to find the build artifacts every time - a bot that directly links the most common used files (Windows, Linux, Mac installers) after each build directly would be amazing :D

@spotlesscoder
Copy link
Contributor

can you please guide me where to click to download the macOS arm64 build?

@ronso0
Copy link
Member Author

ronso0 commented Oct 9, 2024

Testing instructions are in the wiki
https://github.com/mixxxdj/mixxx/wiki/Testing

@spotlesscoder
Copy link
Contributor

Thank you :)

@spotlesscoder
Copy link
Contributor

I get this error message

One of the files this plug-in needs cannot be found, please reinstall or contact technical support for assistance.

But nothing is written to the logfile

@ronso0
Copy link
Member Author

ronso0 commented Oct 9, 2024

Sounds like a macOS error message. Does it print more details?

Did you try to remove Mixxx, then install the CI build again?

@spotlesscoder
Copy link
Contributor

This is what the error looks like on the screen - not sure wether from macOS or mixxx
image

@spotlesscoder
Copy link
Contributor

Do I also have to remove all my local config data when trying again?

@ronso0
Copy link
Member Author

ronso0 commented Oct 9, 2024

Let's first check the log file.
But actually this going off-topic, so let's move this discussion to a issue/bug.
Please file a report at https://github.com/mixxxdj/mixxx/issues attach the log file (here's how to find it).

Thank you!

Do I also have to remove all my local config data when trying again?

You can try, sure, we'll see if that makes a difference. The Testing page also has info wrt backups https://github.com/mixxxdj/mixxx/wiki/Testing#backup-settings-and-database, in case you don't want to throw away all you data.

@spotlesscoder
Copy link
Contributor

#13746

@ronso0 ronso0 force-pushed the overview-abort-drag-leave-zone branch from fe428ef to 3fc4012 Compare October 10, 2024 12:29
@ronso0 ronso0 force-pushed the overview-abort-drag-leave-zone branch from 3fc4012 to 7782585 Compare October 10, 2024 12:38
@spotlesscoder
Copy link
Contributor

The error still occurs with mixxx-2.6-alpha-106-g26e7afc968.dmg even after deleting the old Mixxx folder

@ronso0
Copy link
Member Author

ronso0 commented Oct 10, 2024

Okay (not). I have no clue how this relates to this PR tbh. These are only changes to the drag behavior, no new modules or plugins are added.

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

Successfully merging this pull request may close these issues.

add way to cancel dragging in overview waveform
2 participants