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

open cover art view on left click release #2296

Merged
merged 1 commit into from
Sep 27, 2019
Merged

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Sep 23, 2019

..instead of on button press.

This keeps the view clean when dragging a coverart widget to another deck, playlist etc.
https://bugs.launchpad.net/mixxx/+bug/1844730

@daschuer
Copy link
Member

Ah, got it. The single click cover interferes with starting a drag event.
Can we use the mouseMove even instead of the timer?
Like omit showing the cover if a drag action had been started.

@ronso0
Copy link
Member Author

ronso0 commented Sep 24, 2019

I'm not sure.
I used a timer for the cover window drag, too, because the goal is to make it work on all hardware because and I have made some experience with touch screens where the release would have slight offset due to the vage touch area with fingers.
Though, I don't know if that's still relevant today, it's just my experience.

you think of something like m_mouseMoved is set true when a move is registered, and false on release?

@daschuer
Copy link
Member

That was my first idea.
But if you have a better experience with the timer solution we can stick with it.

@ronso0
Copy link
Member Author

ronso0 commented Sep 24, 2019

In my experience the timer solution already works well for the cover window drag moves from #2072

But it would be nice to have a const global timeout for those mouse events (not button interaction like power_window etc.).
What's the best place to set that const (i.e. kGuiLongpressTimeOut)? In mixxx.cpp like const int MixxxMainWindow::kMicrophoneCount?

@daschuer
Copy link
Member

LGTM. Thank you.

@daschuer daschuer merged commit 6bba535 into mixxxdj:master Sep 27, 2019
@ronso0 ronso0 deleted the cover-drag branch October 25, 2019 16:30
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

Successfully merging this pull request may close these issues.

2 participants