-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Touch and resize issues on mobile android chome #24
Comments
Is heaps supported in mobile browers? My understanding was that heaps wasnt a mobile framework... but maybe thats inaccurate? |
https://heaps.io/samples/index.html |
Right, so i guess ill have to test it a little... the scaling one is fairly easy, its because the canvas in your test app is 100%x100%... so i suppose it makes sense that its scaled all weird... not sure a good way around that... I mean, if you take one of those heaps samples and make it full page 100%x100% then i guess they will also behave strangely wrt to scale? Although interestingly, when i look at them in fullscreen: https://heaps.io/samples/adjustColor/ or And resize the browser things look alright... i can see heaps stuttering though so it looks like its doing something ill have to take a look and see - but it wont be till the weekend most likely since it doesnt look like a 5 second job Cheers, |
Scaling is fine for samples. For ex. check this sample:
thanks! |
I've build heaps samples from github and got the same scaling issue: The html are exactly the same, |
I found what causes the issue and it is heaps related: |
My touch input is working on JS (iPhone Safari browser), but the x,y of the touch is always 0,0. This is because |
Interesting, so could relX / relY be use "across the board" (ie, even on desktop) |
Seems to work fine, yeah... i mean, its relative, but its relative to the root (which is usually s2d), so i guess thats fine, and the same as window absolute i would guess. |
Using this sample
https://github.com/haxeui/component-examples/tree/master/buttons
http://188.166.108.195/testui/ - build
Scaling content issues can be easily reproduced on desktop. Just resize the window.
Took latest git of heaps, haxeui-code and haxeui-heaps
Build script:
The text was updated successfully, but these errors were encountered: