anddea / revanced-patches

๐Ÿงฉ Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
622 stars 43 forks source link

Move SponsorBlock popin window to the left ? #832

Closed smed79 closed 2 months ago

smed79 commented 2 months ago

Application

YouTube

Question description

Hi ๐Ÿ‘‹

SponsorBlock popin to create new segment has been switched from left to right in resent update without any known raison. This is very annoying especially when you use this feature a lot I was hoping that this window would open in a specific place. Also, as is known, there are icons on the right below the videoplayer, and I started clicking on them by mistake when trying to click SB icons, especially on a small screen.

Is there a way through the settings for example to open this window in its original place on the left, below the video player on the left?

Thank you.

Acknowledgements

anddea commented 2 months ago

Cannot see the image. Can you upload it here?

MarcaDian commented 2 months ago

Can you upload it here?

QkXtBtS

anddea commented 2 months ago

I made it draggable. It might need more testing though, didn't have much time to polish it. Give your feedback if you'd like to. New segment window position will reset every time you restart the app.

smed79 commented 2 months ago

First thanks for the work and effort ๐Ÿ‘

I made it draggable

But I'm sorry to say that I, and I don't think I'm the only one, dragable behavior is more annoying unfortunately.

I think that adding an extra step, and here I mean moving the window to a random place every time we open the application, is not practical. I noticed when i try to drag the window it interfere with video player gesture, sometime it swipe the player to the bottom or exit landscape and sometime it change brightness or volume ๐Ÿ˜ฎโ€๐Ÿ’จ

Also want to report that if you click the SB icon then drag the window then switch the video player to full screen (or vice versa) the window will disappear ๐Ÿ˜ถโ€๐ŸŒซ๏ธ

The best (in my opinion) is to lock the window to add new segment top left under the video title, away from any interference with the player buttons, overly buttons or YT seekbar.

... or at least restore the window when it was before.

didn't have much time to polish

We know in advance that this is a voluntary work so don't feel pressured and take the time you need.

Thank you.

anddea commented 2 months ago

Iโ€™ll try to add a patch option to select the default alignment in the future.

Dragging interferes with interface gestures only in portrait mode (at least for me). In landscape mode, it might interfere with swipe gestures for brightness and volume, mostly because of the small handle and the numerous additionally injected swipe gestures. However, if you tap the screen to show controls, you can drag it without issues. Dragging is calculated in pixels, not percentages, so if you drag in landscape mode to the far left, you might not see the new segment window in portrait mode unless you drag it back or reopen the app.

The buttons I use most in this new segment window are the rewind and forward buttons. I use them not only for creating segments but also for rewinding to specific points in a video that I want to examine more closely. Therefore, I find it very difficult to reach the rewind or forward buttons when theyโ€™re on the left side, as they are right at the edge. Thatโ€™s why I made this window default to the right side.

I understand your concern about missing and clicking the wrong buttons, like the overlay buttons. Itโ€™s probably the same issue with dragging the new segment window.

smed79 commented 2 months ago

Iโ€™ll try to add a patch option to select the default alignment in the future.

That will be very helpful to manually set depending our preference ๐Ÿ‘

The buttons I use most in this new segment window are the rewind and forward buttons.

Same thing as me ๐Ÿ‘

Again thanks for the good work ๐Ÿ”จ

anddea commented 2 months ago

Added patch option in the latest release.

smed79 commented 2 months ago

Added patch option in the latest release.

Worked as expected ๐Ÿ‘ Thanks for your responsiveness.

Dragging is calculated in pixels, not percentages, so if you drag in landscape mode to the far left, you might not see the new segment window in portrait mode unless you drag it back or reopen the app.

Is it planned to convert the calculation to percentages or is it difficult/impossible ๐Ÿ‘€ ?

It's not a request, it's a simple question โ˜๏ธ

anddea commented 2 months ago

Didn't think about that yet. Maybe one day.