mintube icon indicating copy to clipboard operation
mintube copied to clipboard

Position limits don't respect orientation

Open just-ole opened this issue 9 years ago • 2 comments

You seem to be restricting the x position to min(screenResolution.x, screenResolution.y)-floatingWindow.width and the y position to max(screenResolution.x, screenResolution.y)-floatingWindow.height regardless of the device orientation since on my tablet only used in landscape mode I can move the video below the bottom of the screen but not even to the middle of the screen so It can't be dragged onto the X to close it. If I force the tablet into portrait mode the floating window behaves as it should.

just-ole avatar Apr 14 '17 10:04 just-ole

@just-ole

I've encountered this as well.... I'm wondering, since you seem to have a better notion of what's going on here - you wouldn't by chance be able to point me to the relevant lines of code where changes need to made would you?

Personally, I don't like the close button at all, it seems redundant being as you can close the app from the notification try (and this code is buggy anyway), but I'd like to be able to fix this issue and have the player be able to go below the bottom of the screen without disappearing and also be able to move the player beyond the 1/2 point in landscape mode...

any advice or tips would be helpful!

nine7nine avatar Oct 18 '17 19:10 nine7nine

@just-ole

I've kinda figured this out for myself... Removing these lines;

https://pastebin.com/pEfdvkGR

allows me to move the player freely in landscape mode...

The close button / dragging to the bottom is another issue. but I've worked around it, I've disabled it. So now I can drag the player to the bottom without it disappearing, no close button or that functionality.

nine7nine avatar Oct 18 '17 20:10 nine7nine