Home / Topic / Swipe doesn't work on iPad Mini / iPad Air

Swipe doesn't work on iPad Mini / iPad Air

Home Kwiksher Forums Help me! Swipe doesn't work on iPad Mini / iPad Air

Viewing 15 posts - 1 through 15 (of 15 total)
  • jmsilvav
    Participant
    #84100

    Hi,

    We just develop a book that works perfectly on iPads and iPhone 5, iPhone 4 or iPhone touch, nevertheless, the swipe page doesn’t work on iPad Mini and iPad Air. On both devices if you double tap on the right border of the book app, it returns to previous page… Our client is very disappointed because it works well on other ipads. What could be the issue???

    Thanks.

    Yamamoto
    Keymaster
    #84101
    jmsilvav
    Participant
    #84102

    No, no error at all.
    We have test the app on Ipad 2 and iPad 3rd generation and works great, but in iPad Mini and iPad Air the swipe doesn’t. Instead, any tap on screen advance to previous page… Any idea??

    jmsilvav
    Participant
    #84105

    Hi,

    We found that the swipe event doesn’t work on iPad Mini,

    This part of the code has the issue…
    composer.Gesture.activate( layer.fondo, {swipeLength=120} )
    composer.pageSwap = function (event )
    local options
    print (“event.phase”, event.phase, event.direction)

    On iPad Mini, the event phase is
    begin , direction nil,
    moved , direction nil,
    moved , direction nil,
    moved , direction nil,
    ended , direction nil

    So, for the event.direction always is registering nil, the swipe doesn’t work. Any ideas??.

    Thanks in advance.

    jmsilvav
    Participant
    #84109

    Hi, we’ve found that in dmc_gesture file, the value for event.xStart is always returning 0 when we use iPad mini to run our app, if we use iPad Retina, the value for event.xStart always returns a value.

    Any ideas??

    Thanks.

    Yamamoto
    Keymaster
    #84112

    I don’t have iPad Mini and iPad Air. Testing with iOS xCode simulator seems working fine.

    Which Corona SDK version and iOS version of device are you using?

    jmsilvav
    Participant
    #84113

    Hi,

    Corona 2015.2545, 8.2 iOS

    We made another simple test and the device worked fine, so we assume that the dmc_gesture is not working well.

    This was our test and worked fine…
    local function touchTest( event )
    if event.phase == “began” then
    print( “event.phase”, event.phase )
    print( “event.x”, event.x )
    print( “event.y”, event.y )
    print( “event.xStart”, event.xStart )
    print( “event.yStart”, event.yStart )
    end
    end

    display.currentStage:addEventListener( “touch”, touchTest )

    Yamamoto
    Keymaster
    #84119

    Next week, I can get an iPad mini or iPad Air to test.

    reviewing dmc_gesture etc, I don’t see why it happens with iPad Mini specifically.

    Instead of entire display.currentStage, can you modify the page_x.lua by Kwik to test layer.fondo actually receive a touch event or not on iPad Mini?

    You have found pageSwap code in page_x like this.

    composer.Gesture.activate( layer.fondo, {swipeLength=120} )
    composer.pageSwap = function (event )

    Then the following codes to check event.xStart comes or not

    
    function layer.fondo:touch ( event )
        print( “event.phase”, event.phase )
        print( “event.x”, event.x )
        print( “event.y”, event.y )
        print( “event.xStart”, event.xStart )
        print( “event.yStart”, event.yStart )
    end
    
    layer.fondo:addEventListener( “touch”, layer.fondo )
    
    jmsilvav
    Participant
    #84121

    We found the bug…

    We just have to disable the multitouch (System.multitouch) and everything worked fine.

    Thanks in advance.
    Jose

    Jorge
    Participant
    #84127

    Hi José,
    What do you mean with “disable the multitouch? Where and how do you do it?
    I have no problem with iPAD Air. I have though a problem with iPhone6 (no problems with Samsung smartphones), where a swipe does not work.

    jmsilvav
    Participant
    #84128

    On the main.lua of the project, the line System.multitouch, we have to comment that.

    Also, we have to disable the Swipe option of the project, and include in each page a little code to handle the swipes… We don’t know why the iPad Mini, on the touch event, when the phase is “ended” the values for event.xStart are always returning 0., We changed that and everything worked fine.

    Jorge
    Participant
    #84129

    Thanks José,

    I hope Nayoa solves it within Kwik.

    I believe that the main.lua line is this one

    system.activate(“multitouch”)

    I have not tested in mini iPAD, but will try to get into that. For sure in iPhone6 does not work (I have also allowed touch to get around it.

    I would like to test your solution, but do not know anything about the piece of code which goes into the pages with swipes. Maybe asking you to share that is asking too much!

    Obrigado.

    Yamamoto
    Keymaster
    #84136

    I found the following incident. I am going to test it with the latest daily build.

    https://forums.coronalabs.com/topic/57535-coronaviewer-stopped-working/?p=300725

    Yamamoto
    Keymaster
    #84138

    I could not reproduce the problem with the Candice Sample app. Swipe is working with iPad Air

    iPad Air (8.4.1)
    corona SDK (2015.2646)
    system.activate(“multitouch”) enabled.

    Next I will check iPhone6 in an hour

    Yamamoto
    Keymaster
    #84139

    Swipe is working with iPhone6 too

    iPhone6(8.3)
    corona SDK (2015.2646)
    system.activate(“multitouch”) enabled

    Jorge, could you zip the build folder of your kwik project and send it to support@kwiksher.com?
    Let me know which iOS and corona SDK version as well

Viewing 15 posts - 1 through 15 (of 15 total)

The forum ‘Help me!’ is closed to new topics and replies.