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

HaxeUI v2 not working on mobile? #6

Open
alamboley opened this issue Apr 4, 2017 · 2 comments
Open

HaxeUI v2 not working on mobile? #6

alamboley opened this issue Apr 4, 2017 · 2 comments

Comments

@alamboley
Copy link
Contributor

alamboley commented Apr 4, 2017

Hello,

I tried this page http://haxeui.org/v2/pixi/html5-webgl/index.jsp on my iPhone 6S, and unfortunately I was not able to click anywhere. Mobile support is not ready with Haxe UI?

On an other topic, I'm trying to create a ScrollView like the left menu of https://feathersui.com/examples/components-explorer/, working only with drag & drop without scroll bars. Is it supported with Haxe UI?

My basic code:

var scroll = new ScrollView();
scroll.componentClipRect = new haxe.ui.util.Rectangle(0, 0, 200, 50);

for (i in 0...10) {

	var btn = new Button();
	btn.text = "Btn " + i;
	scroll.addComponent(btn);
}

stage.addChild(scroll);

Buttons are correctly hidden, but can't move the ScrollView.

I can not find a lot of documentation & examples too. What is the ETA of Haxe UI?

Thanks a lot for your work, supporting so many targets and framework is incredible ;)

@ianharrigan
Copy link
Member

Hi, so firstly the website is very old, those demos there havent been updating in such a long time (pre alpha release!) so ignore them :)

Im working on a new site, but its not quite there yet.

As for your scrollview, dont set the componentClipRect the scrollview will do that for you. You may need to size / position the scrollview to the size you want (or use a layout, up to you).

Cheers,
Ian

@alamboley
Copy link
Contributor Author

Ok thanks for the answer and clarifications.

Could you provide a basic example? I wasn't able to get a touch scroll, and if I use a layout I lost the content and have some scroll bars not correctly aligned.

On the console I got also:

ThemeManager.hx:59: WARNING: could not find styles/main.css
Boot.hx:62 Screen.hx:314: WARNING: Screen event "KeyDown" not supported

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

No branches or pull requests

2 participants