Is there a way to stop the zoom on mobile?

  • Also the is on mobile and/or is on platform system conditions could be of use..

  • I included screenshots to help me explain my problem a little better, this always helps me.

    See how my app scales? When the keyboard pops up

    I would like my app to utilize how Facebooks login system works like below, it just covers up the bottom of the forum. It seems to ignore the scale.

    Could this be possible?

  • I thought you get that when you put the project full screen on crop.

  • This is what happens when crop is turned on, without screen adjustments, because it was turned to Scale Outer mode.

    It seems to crop the top as well

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • In your example, your layout doesnt seem right; it says 480,200, while your project view is 268, 480 ...

    Try and making them the same .. ie set both to 268,480

  • and scale inner? looks like your layout could have that..

  • They are both 268 by 480 in those screenshots I had fixed that.

    I haven't tried scale inner, Ill try that

  • This is what scale inner looks like 268 by 480

  • Looks like you are almost there.

    That looks like it could be solved with a simple system scrollto.

  • Hey there, I took your advice and this is what I got with Scale inner as full-screen in browser, and system scrollto textbox and also unbound scroll set to YES.

    The result is this: It seems to leave a huge gap inside my app

  • That's because you shouldn't scrollto textbox as you can clearly see.

    The textbox origin point is in the upperleft corner, so if you scroll to that the upperleftcorner will be in the middle of the screen.

    So where do you scroll to? Well it seems like the x-coordinate should be in the middle of your layout.

  • Im back, and I have made some progress!

    I used the following routine to on clicked textbox, it checks to see what the window size changed to, and divides that by 2 to get the halfway mark. The width stays the same half way mark, because the width did not change from the keyboard. I then set a variable to set the current value of the window size (which is the window size with the keyboard up) then once the user backs out of the keyboard, the window size changes, and I compare the value when the keyboard is up to the value when the keyboard is down as you see in the second event, and scrolls accordingly.

    Here is what my phone looks like with this method put into play:

    As you can see, its close! but not quite perfect, there is more white space when you backed out of the keyboard on top of the textbox, then when the keyboard is up. The event also has a wait of 0.75 seconds, it seems like the events inside the clicked on textbox gets ignored, because their is a slight delay from when the keyboard pops up, so I have to compensate for that delay by delaying the rest of the events by 0.75 seconds. That seems inefficient. Is there a way I could make it happen instantaneous? Because the user can see that delay it takes to scroll.

    Edit: However, I tried it on a bigger phone with a bigger screen width & height, and my current system breaks and does not work.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)