Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Full screen problem with IOS on landscape orientation. #101

Closed
RedYggdrasil opened this issue Jan 3, 2017 · 6 comments
Closed

Full screen problem with IOS on landscape orientation. #101

RedYggdrasil opened this issue Jan 3, 2017 · 6 comments

Comments

@RedYggdrasil
Copy link

RedYggdrasil commented Jan 3, 2017

Hi,
I have a problem with Haxe and PixiJs while using the “full screen” (bar are still here, just use all the available web space) view on IOS (tested with safari), when I turn my IPhone to portraits, then back in landscape, the view is no longer centered, but “scrolled down”, which is a problem, as it should be full screen, and force the user, if html accept it to scroll up again.
The bug is visible also on your Bunny Mark demo:
https://github.com/pixijs/pixi-haxe/tree/dev/samples/bunnymark

Thanks,
Red.

bunnyproblem

@GaryTsang
Copy link

Dude, I dont think this is a Haxe or Pixi issue. It is how iOS /Safari behaves. There are work around solutions out there for example Brim.

@RedYggdrasil
Copy link
Author

RedYggdrasil commented Jan 3, 2017

Hi and thanks for the quick answer,

I have found a Pixi example which doesn’t have the problem http://www.goodboydigital.com/runpixierun/
Don't know how they manage it, I'm looking the source code.
I don’t know what “brim” refer to, could you give me more informations?
Thank you and have a nice day.

@GaryTsang
Copy link

sure, Brim is here:
https://github.com/gajus/brim

@alamboley
Copy link
Contributor

Jumping into this issue too! Brim seems to be pretty old and not relay maintained. Also can't find subject bringing pixijs & brim together, which is weird because everyone should have this issue! Also I can't find anything related to Brim in the Run Pixie Run above...

I'd the same issue with a threejs project, so I think the problem is mostly on HTML/CSS part rather than JS. What do you think @adireddy?

@GaryTsang
Copy link

The issue, well is not an issue but a behaviour in iOS that is not reported via conventional JS events. And is not related to pixi, Haxe or JS per-say. Happy to be corrected if I'm wrong :)

Agreed, Brim is old and not really maintained now. I haven't used any other alternatives yet so can't comment but would be happy to hear others' thoughts and experience.

@adireddy

This comment was marked as spam.

@adireddy adireddy closed this as completed Jan 3, 2017
alamboley added a commit to alamboley/pixi-haxe that referenced this issue Jan 4, 2017
Related to pixijs#101, it shouldn't be an `absolute` position but a `fixed` one! Do you see any downside changing this?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants