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

Right click doesn't register above OSC #20

Closed
Keith94 opened this issue Oct 14, 2024 · 20 comments · Fixed by #70
Closed

Right click doesn't register above OSC #20

Keith94 opened this issue Oct 14, 2024 · 20 comments · Fixed by #70
Labels
feature request New feature or request low priority A low priority issue since it is most likely cosmetic and not breaking function

Comments

@Keith94
Copy link
Contributor

Keith94 commented Oct 14, 2024

mpv_4uS5AC2CUO

In the screenshot, the space between the seekbar and my mouse cursor acts like a dead zone where right mouse click won't do anything to pause/unpause.

@Samillion
Copy link
Owner

Yes and no. This area is a the top end of the OSC controls layer (count the title, even if hidden).

It should change if title is hidden. Will fix.

@Samillion
Copy link
Owner

Could you try this version and see if it's fixed in it, please:
https://github.com/Samillion/ModernZ/blob/wc_bug_rewrite/modernz.lua

This is a dev version, if you notice any other bugs other than the already opened issues, please let me know.

@Keith94
Copy link
Contributor Author

Keith94 commented Oct 14, 2024

I tested with 5930340 and can still reproduce :(

@Samillion
Copy link
Owner

Could you try again please, I reverted a bit of code.

@Keith94
Copy link
Contributor Author

Keith94 commented Oct 14, 2024

PowerToys_GsNGuHPs4T.mp4

blue dot is my right click; you can see where it works and doesn't

@Keith94
Copy link
Contributor Author

Keith94 commented Oct 14, 2024

Does it work properly for you? @Samillion

@Samillion
Copy link
Owner

It works exactly as you shown on the last video. I've reduced the deadzone above the OSC, so that once you reach the alpha fade, you're in "controller" zone. If that makes sense (ie: show osc).

@Keith94
Copy link
Contributor Author

Keith94 commented Oct 14, 2024

Oh I see. i guess I expected it to work like the stock OSC, where your inputs will register even 1 pixel above the OSC like below. in modernz there is approx 65 pixel gap where inputs don't work, but since the stock OSC doesn't have any fade, I suppose this makes sense why it works differently.

PowerToys_ayVjPdro1B.mp4

@Samillion
Copy link
Owner

Can always improve it to be exact and count the deadzone based if title above OSC is shown or not.

Noted, though this might take a while, since the other things have been driving me mad 🥲

@Samillion
Copy link
Owner

Samillion commented Oct 15, 2024

I've decreased the show/hide area above OSC a bit, now it should only create that OSC layer once the mouse is actually inside the top of the fade.

Should I decrease it more or is it good as is?

Review change in: 7d1d817

@Keith94
Copy link
Contributor Author

Keith94 commented Oct 15, 2024

Nice, it has definitely improved things.

My only concern is if someone were to use OSCfadealpha=0 to disable the fade completely or even reduce it with different values, it still feels kind of jarring when your mouse inputs don't function in that little strip of the video, when it looks like they should be able to.

@Keith94
Copy link
Contributor Author

Keith94 commented Oct 15, 2024

In the case that it's difficult to fix, can always ship it the way it is. It's not hurting anybody and users can adapt to how it works

@Samillion
Copy link
Owner

I can make it so that it uses the title area as a trigger instead of the alpha shade area.

So that only when you hover the mouse in the line the title would be, it shows, anything above it is unaffected.

The main purpose for that deadzone is: the title is functional. A very niche/specific function, that I personally never use, but exist in almost all OSCs, even stock.

Title above seekbar function:

  • Left click => show media-title in OSD
  • Right click => show filename in OSD

@Keith94
Copy link
Contributor Author

Keith94 commented Oct 15, 2024

Cool, I'd be willing to test it. I can understand the title should stay functional. I just thought it was weird that the control layer counted the title even if it was hidden (like you said earlier) haha.

@Samillion
Copy link
Owner

I'll tinker with it a bit later, and I'll try to utilize your idea of based it on OSCfadealpha and existence of title.

@Samillion
Copy link
Owner

Ok, now that all the other issues are fixed and release of v0.1.2 is done (you're mentioned there btw), I'll focus on this to try and improve it.

I still haven't thought of the best way to do this, because alpha shade is non-linear. Once I do though, I'll apply the changes.

@Keith94
Copy link
Contributor Author

Keith94 commented Oct 16, 2024

That's wicked man! Thanks for all these updates

I think the script is pretty much bullet proof at this point. Should make it into mpv project one day (fingers crossed) 😆

@Samillion Samillion added feature request New feature or request low priority A low priority issue since it is most likely cosmetic and not breaking function labels Oct 17, 2024
@Samillion
Copy link
Owner

Ok, back to this since I have some time to focus on it.

Suggested solution:

  • If title above seekbar = no, decrease deadzone accordingly.

Would that be an acceptable solution?

@Keith94
Copy link
Contributor Author

Keith94 commented Oct 21, 2024

If title above seekbar = no, decrease deadzone accordingly.

Sounds good to me!

@Samillion
Copy link
Owner

I'll also add a user_opt to adjust the value of bottomhover (at the moment it's 160). That way, you can refine it to your exact liking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request low priority A low priority issue since it is most likely cosmetic and not breaking function
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants